This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11707] [3.4 Regression] [new unroller] constants not propagated in unrolled loop iterations with a conditional


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From rakdver at gcc dot gnu dot org  2003-09-29 12:31 -------
This is just a pass ordering problem. Copy propagation in jump bypassing
is being run between old and new loop unroller; so it acts on already unrolled
loop with -fold-unroll-loops, but is not able to do anything senseful
with -funroll-loops.

On rtlopt-branch I have moved unroller before jump bypassing, this is why it 
does not reproduce there.

On tree-ssa constant propagation is able to detect that a*=a is no-op in this
case. Cool.

Anyway, the attached patch fixes the problem.  I believe moving jump bypassing
after unroller should not harm anything.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]