aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-20 02:10:27 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-20 02:10:27 +0000
commitef4c5b2c4971e741cd583f5c351e8328e72e93fa (patch)
tree71ae23f126389c602b32c462d679511367f95c9c /lib/Target/ARM/ARMBaseInstrInfo.cpp
parentc0bb0ae7d0154008e836e31d8f8cf77fa2ebb726 (diff)
downloadexternal_llvm-ef4c5b2c4971e741cd583f5c351e8328e72e93fa.zip
external_llvm-ef4c5b2c4971e741cd583f5c351e8328e72e93fa.tar.gz
external_llvm-ef4c5b2c4971e741cd583f5c351e8328e72e93fa.tar.bz2
Also CSE non-pic load from constant pools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMBaseInstrInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index b50b609..33a96f6 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -978,7 +978,10 @@ bool ARMBaseInstrInfo::isIdentical(const MachineInstr *MI0,
const MachineInstr *MI1,
const MachineRegisterInfo *MRI) const {
int Opcode = MI0->getOpcode();
- if (Opcode == ARM::t2LDRpci_pic || Opcode == ARM::tLDRpci_pic) {
+ if (Opcode == ARM::t2LDRpci ||
+ Opcode == ARM::t2LDRpci_pic ||
+ Opcode == ARM::tLDRpci ||
+ Opcode == ARM::tLDRpci_pic) {
if (MI1->getOpcode() != Opcode)
return false;
if (MI0->getNumOperands() != MI1->getNumOperands())