More cool stuff for the dag combiner. We can now finally handle things
authorNate Begeman <natebegeman@mac.com>
Wed, 12 Oct 2005 20:40:40 +0000 (20:40 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 12 Oct 2005 20:40:40 +0000 (20:40 +0000)
commit3df4d525c58d5db878eaadcfdcffbbfca96dd6a2
tree3b04ff3f93d6c0f634990c6cdc4b36d1cc4b0628
parentfab66f69009857f77bad1e9cb9f41733c04e011f
More cool stuff for the dag combiner.  We can now finally handle things
like turning:

_foo:
        fctiwz f0, f1
        stfd f0, -8(r1)
        lwz r2, -4(r1)
        rlwinm r3, r2, 0, 16, 31
        blr

into
_foo:
        fctiwz f0,f1
        stfd f0,-8(r1)
        lhz r3,-2(r1)
        blr

Also removed an unncessary constraint from sra -> srl conversion, which
should take care of hte only reason we would ever need to handle sra in
MaskedValueIsZero, AFAIK.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23703 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp