Re: Fix loop-iv.c ICE

2013-01-17 Thread Richard Biener
On Wed, Jan 16, 2013 at 5:13 PM, Jan Hubicka wrote: > Hi, > this patch fixes ICE seen in PR51083 on PPC. Here the flags ^= 0x8000 > expression > is translated as PLUS. This makes us to consider flags to be IV and work out > that the > loop do not really iterate. It is a missed optimizati

Fix loop-iv.c ICE

2013-01-16 Thread Jan Hubicka
Hi, this patch fixes ICE seen in PR51083 on PPC. Here the flags ^= 0x8000 expression is translated as PLUS. This makes us to consider flags to be IV and work out that the loop do not really iterate. It is a missed optimization that we do not work out this on all targets and do not unloop