This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- 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:45:57 -0000
- Subject: [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
- References: <20040404164720.14846.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: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