[Bug tree-optimization/19792] Missed optimizations due to signedness in the way

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Wed Mar 16 14:59:00 GMT 2005


------- Additional Comments From kazu at cs dot umass dot edu  2005-03-16 14:59 -------
FYI, here is the tailc dump that I get with the current mainline.

;; Function foo (foo)

foo (t)
{
  unsigned char D.1137;
  unsigned int t.1;
  unsigned char D.1135;
  int t.0;
  int D.1133;

<bb 0>:
  t.0_2 = (int) t_1;
  D.1135_4 = size_lookup[t.0_2];
  D.1137_6 = size_lookup[t_1];
  D.1133_7 = D.1135_4 == D.1137_6;
  return D.1133_7;

}



;; Function bar (bar)

bar (t)
{
  int a;
  unsigned int a.2;
  int D.1142;

<bb 0>:
  a_2 = (int) t_1;
  a.2_3 = (unsigned int) a_2;
  D.1142_4 = t_1 == a.2_3;
  return D.1142_4;

}


-- 


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



More information about the Gcc-bugs mailing list