This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/14846] [tree-ssa] don't use a shift in A & CST_POWER_OF_2 == 0 until very late in tree-ssa optimizations


------- Additional Comments From kazu at cs dot umass dot edu  2004-05-15 11:45 -------
As of today, the last tree-ssa form of foo() looks like:

foo (a)
{
  _Bool T.3;
  int T.2;
  int T.1;
  unsigned int T.0;

<bb 0>:
  T.0_2 = a_1 >> 3;
  T.1_3 = (int)T.0_2;
  T.2_4 = T.1_3 & 1;
  if (T.2_4 != 0) goto <L0>; else goto <L1>;

<L0>:;
  bar () [tail call];

<L1>:;
  return;

}

Note that the cast to _Bool is gone.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]