Re: Compiler Loop Unswitching



Based on our metrics the single most important loop optimization
on application code is moving the test to the bottom when the first
compare is known at compile time. It halves the pipe line flushes
and is almost trivial to implement.

Could you explain what you mean with "first compare"? Maybe you could
provide a small code example?

Thank you.

Tim

.



Relevant Pages

  • Re: Compiler Loop Unswitching
    ... compare is known at compile time. ... It halves the pipe line flushes ... Could you explain what you mean with "first compare"? ... if goto zz ...
    (comp.programming)
  • Re: Compiler Loop Unswitching
    ... compare is known at compile time. ... It halves the pipe line flushes ... Could you explain what you mean with "first compare"? ... if goto zz ...
    (comp.programming)
  • Re: Compiler Loop Unswitching
    ... It halves the pipe line flushes ... Could you explain what you mean with "first compare"? ... snippet below because it jumps to the first test), so maybe the Jump %2 can ...
    (comp.programming)
  • Re: Its Jihad.... not terrorism
    ... The boogey man!!!!! ... contrast and compare with how many have died since then from allergic ... takes too many flushes. ... your beloved Clinton was the first that tried to pass the ...
    (rec.martial-arts)
  • Re: Need help with REDEFINES (I think)....
    ... >Mr Wagner, you might want to compare this bit of what appears to be 'Look, ... With a decent compiler, it will run as fast too. ... EXP10 function at compile time rather than execution time. ...
    (comp.lang.cobol)