[Bug tree-optimization/14797] [tree-ssa] propagate constants back to PHI

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Mon Jan 31 14:46:00 GMT 2005


------- Additional Comments From kazu at cs dot umass dot edu  2005-01-31 14:46 -------
Seems like what I feared in comment #2 is going on.
Specifically, for the original test case, I get:

foo (a)
{
  _Bool D.1130;
  _Bool D.1129;
  int b;
  int D.1120;

<bb 0>:
  D.1129_5 = a_2 == 0;
  D.1130_6 = !D.1129_5;
  b_1 = (int) D.1130_6;
  D.1120_3 = b_1 + 1;
  return D.1120_3;

}

I don't know if it's correct to say PHI-OPT is run too early,
but at least it is blocking us to obtain:

# b_1 = PHI <2(0), 1(1)>;


-- 


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



More information about the Gcc-bugs mailing list