mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Eliminate a redudant check Eli pointed out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3185a4ac6d
commit
78dd9dbdfb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user