Chris Lattner d0a2fda2c6 Fold (x & 8) != 0 and (x & 8) == 8 into (x & 8) >> 3.
This turns this PPC code:

        rlwinm r2, r3, 0, 28, 28
        cmpwi cr7, r2, 8
        mfcr r2
        rlwinm r3, r2, 31, 31, 31

into this:

        rlwinm r2, r3, 0, 28, 28
        srwi r2, r2, 3
        rlwinm r3, r2, 0, 31, 31

Next up, nuking the extra and.

llvm-svn: 21390
2005-04-21 06:12:41 +00:00
..
2005-04-19 15:27:29 +00:00
2005-03-15 23:03:34 +00:00
2005-04-21 02:50:10 +00:00
2005-04-21 05:43:13 +00:00
2004-11-14 21:54:41 +00:00