Make the case I just checked in stronger. Now we compile this:
authorChris Lattner <sabre@nondot.org>
Mon, 8 May 2006 21:18:59 +0000 (21:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 May 2006 21:18:59 +0000 (21:18 +0000)
commit4b37e87ab9e7bfad8b87115278ca589f8d49ba26
treef200f335a0f8afa3131232fbc71b5c49fed0447a
parenteaeda56649052fc75e527b37089d6d67c4a5976d
Make the case I just checked in stronger.  Now we compile this:

short test2(short X, short x) {
  int Y = (short)(X+x);
  return Y >> 1;
}

to:

_test2:
        add r2, r3, r4
        extsh r2, r2
        srawi r3, r2, 1
        blr

instead of:

_test2:
        add r2, r3, r4
        extsh r2, r2
        srwi r2, r2, 1
        extsh r3, r2
        blr

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