[Bug tree-optimization/37997] PHI translation does not simplify to non-constants

2012-01-19 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37997 --- Comment #3 from Richard Guenther 2012-01-19 09:38:04 UTC --- Author: rguenth Date: Thu Jan 19 09:37:58 2012 New Revision: 183297 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183297 Log: 2012-01-19 Richard Guenther PR tree-op

[Bug tree-optimization/37997] PHI translation does not simplify to non-constants

2012-01-19 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37997 Richard Guenther changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug tree-optimization/37997] PHI translation does not simplify to non-constants

2012-01-19 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37997 --- Comment #2 from Richard Guenther 2012-01-19 09:35:38 UTC --- int foo (int i, int b) { int mask; int result; if (b) mask = -1; else mask = 0; result = result & mask; return result; } actually works if you do not have resul

[Bug tree-optimization/37997] PHI translation does not simplify to non-constants

2012-01-18 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37997 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|