Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to eliminate "if continue " or "if break" statements in loop ?

$
0
0

hi,ti optimization experts!

Now I always find many "if continue " and " if break " statements in my algorithms.These statements prevented to produce software pipeline in loops and has poor 

performance.for example:

how to optimize code like this:

for(...)

{

     

if (A) continue;

if(B)  break;

}

when I compilered these code,I would found feedback information like this  "Disqualified loop: Loop contains control code "; So, I couldn't know how to eliminate 

"if break" and "if continue" to produce software pipeline.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>