summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-04-01 21:56:02 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-04-01 21:56:02 +0000
commitad8180a0b85cbb66d30ba011d358279e6d461a16 (patch)
tree028320c2c2ae5a77e2dea8296bd3d4965d79d0fc /lib
parente2e436a6bc44deb2f989a39514f482b4932b93bc (diff)
downloadllvm-ad8180a0b85cbb66d30ba011d358279e6d461a16.tar.gz
llvm-ad8180a0b85cbb66d30ba011d358279e6d461a16.tar.bz2
llvm-ad8180a0b85cbb66d30ba011d358279e6d461a16.tar.xz
Remove redundant code. There are assignments to variables Base and Offset right after the code that is removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/MipsISelDAGToDAG.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsISelDAGToDAG.cpp b/lib/Target/Mips/MipsISelDAGToDAG.cpp
index f2e53a85d1..3749009112 100644
--- a/lib/Target/Mips/MipsISelDAGToDAG.cpp
+++ b/lib/Target/Mips/MipsISelDAGToDAG.cpp
@@ -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;