diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-11-20 02:10:27 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-11-20 02:10:27 +0000 |
commit | ef4c5b2c4971e741cd583f5c351e8328e72e93fa (patch) | |
tree | 71ae23f126389c602b32c462d679511367f95c9c /lib/Target/ARM/ARMBaseInstrInfo.cpp | |
parent | c0bb0ae7d0154008e836e31d8f8cf77fa2ebb726 (diff) | |
download | external_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.cpp | 5 |
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()) |