This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15350] [tree-ssa] Convert if ((1 << a) & 1) into if (a == 0).
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2004 11:39:46 -0000
- Subject: [Bug tree-optimization/15350] [tree-ssa] Convert if ((1 << a) & 1) into if (a == 0).
- References: <20040509195047.15350.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2004-05-15 11:39 -------
As of today, the last tree-ssa form of foo() looks like:
foo (a)
{
int b;
_Bool T.1;
int T.0;
<bb 0>:
b_2 = 1 << a_1;
T.0_3 = b_2 & 1;
if (T.0_3 != 0) goto <L0>; else goto <L1>;
<L0>:;
bar () [tail call];
<L1>:;
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15350