PR/29798, def forward propagated even though it does not dominate use

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Mon Nov 13 19:47:00 GMT 2006


This PR is a more complex example of a case that is already covered in 
fwprop's simplistic available expression analysis.  In some obscure 
situations we can have a def reaching a use that is _before_ the def.  
In other words the def does not dominate the use.  This can happen when 
a value from the previous iteration is used in a loop.

We need to hoist the test nearer to the beginning of use_killed_between, 
and this makes us produce good code.

Bootstrapped/regtested i686-pc-linux-gnu.  Ok for mainline?

Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr29798.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061113/c686c06b/attachment.ksh>


More information about the Gcc-patches mailing list