在优化时候经常有代码,在循环中含有if语句,有些甚至是if continue 和 if break语句,这些都不能让
编译器形成软件流水,比如下面的。
for(...)
{
if (A) continue;
if(B) break;
}
一般怎么去掉这些if continue 和 if break,让它形成流水,不要说,一般的那种if,比如
if(A)
{
c = a+b;
}
就是问如何去掉if continue和 if break
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在优化时候经常有代码,在循环中含有if语句,有些甚至是if continue 和 if break语句,这些都不能让
编译器形成软件流水,比如下面的。
for(...)
{
if (A) continue;
if(B) break;
}
一般怎么去掉这些if continue 和 if break,让它形成流水,不要说,一般的那种if,比如
if(A)
{
c = a+b;
}
就是问如何去掉if continue和 if break
谢谢!