Remove redundant code. There are assignments to variables Base and Offset right after...
authorAkira Hatanaka <ahatanak@gmail.com>
Fri, 1 Apr 2011 21:56:02 +0000 (21:56 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Fri, 1 Apr 2011 21:56:02 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128742 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelDAGToDAG.cpp

index f2e53a85d1ea36eed4a1b63110645cce4dd5e817..3749009112eae14a32e23103599124a515e8a883 100644 (file)
@@ -171,11 +171,6 @@ SelectAddr(SDValue Addr, SDValue &Offset, SDValue &Base) {
     }
   }
 
-  if (isa<BlockAddressSDNode>(Addr.getOperand(1))) {
-    Base = Addr.getOperand(0);
-    Offset = Addr.getOperand(1);
-  }
-
   Base   = Addr;
   Offset = CurDAG->getTargetConstant(0, MVT::i32);
   return true;