Eliminate a redudant check Eli pointed out.

llvm-svn: 76762
This commit is contained in:
Evan Cheng 2009-07-22 18:08:05 +00:00
parent 8f3169cf4a
commit 1ec4396ee3
1 changed files with 2 additions and 2 deletions

View File

@ -956,7 +956,7 @@ SDNode *ARMDAGToDAGISel::Select(SDValue Op) {
ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm);
SDValue ShImmOp = CurDAG->getConstant(ShImm, MVT::i32);
SDValue Reg0 = CurDAG->getRegister(0, MVT::i32);
if (Subtarget->isThumb() && Subtarget->hasThumb2()) {
if (Subtarget->isThumb()) {
SDValue Ops[] = { V, V, ShImmOp, getAL(CurDAG), Reg0, Reg0 };
return CurDAG->SelectNodeTo(N, ARM::t2ADDrs, MVT::i32, Ops, 6);
} else {
@ -972,7 +972,7 @@ SDNode *ARMDAGToDAGISel::Select(SDValue Op) {
ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm);
SDValue ShImmOp = CurDAG->getConstant(ShImm, MVT::i32);
SDValue Reg0 = CurDAG->getRegister(0, MVT::i32);
if (Subtarget->isThumb() && Subtarget->hasThumb2()) {
if (Subtarget->isThumb()) {
SDValue Ops[] = { V, V, ShImmOp, getAL(CurDAG), Reg0 };
return CurDAG->SelectNodeTo(N, ARM::t2RSBrs, MVT::i32, Ops, 5);
} else {