[Bug tree-optimization/23855] Should not do loop header copying for inner loop

rakdver at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 13:30:00 GMT 2005


------- Additional Comments From rakdver at gcc dot gnu dot org  2005-09-13 13:29 -------
It is not clear to me why you find the code without header copying better -- 
number of checks of each condition is exactly the same in both cases, and with 
right ordering of basic blocks, there should be one less jump executed. 
Depending on branch prediction on the target, either the original code or the 
code with copied headers may be faster, but it is hard to determine which one. 
 
Unswitching of non-innermost loops should not be hard to implement (most of 
code is in place, it only was quite some time that it was tested for anything 
but innermost loops, so there probably is some bitrot; and a few pieces on tree 
level may be missing). 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23855



More information about the Gcc-bugs mailing list