diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-04-01 21:38:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-01 21:38:20 +0000 |
commit | a2e223c1887c7374bebd0134bbac97211f83cd80 (patch) | |
tree | 00c59542847d98ebb87b49ed180c14eb34a723f9 /lib | |
parent | 71f75b446345d0b940d727cb09bd1e0beb3b3bd6 (diff) | |
download | external_llvm-a2e223c1887c7374bebd0134bbac97211f83cd80.zip external_llvm-a2e223c1887c7374bebd0134bbac97211f83cd80.tar.gz external_llvm-a2e223c1887c7374bebd0134bbac97211f83cd80.tar.bz2 |
Remove unnecessary and non-deterministic checking code. Re-enable remat of load from gv stub.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 7349408..ffe2083 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -752,10 +752,7 @@ static bool regIsPICBase(unsigned BaseReg, MachineRegisterInfo &MRI) { /// isGVStub - Return true if the GV requires an extra load to get the /// real address. static inline bool isGVStub(GlobalValue *GV, X86TargetMachine &TM) { - return false; - /* Temporarily disabled. return TM.getSubtarget<X86Subtarget>().GVRequiresExtraLoad(GV, TM, false); - */ } bool X86InstrInfo::isReallyTriviallyReMaterializable(MachineInstr *MI) const { @@ -1828,15 +1825,7 @@ X86InstrInfo::foldMemoryOperand(MachineInstr *MI, unsigned i, MI->getOperand(0).getReg() == MI->getOperand(1).getReg()) { OpcodeTablePtr = &RegOp2MemOpTable2Addr; isTwoAddrFold = true; - // Can't write back to CPI or a GV stub. - if (MOs[3].isCPI() || - (MOs[3].isGlobal() && isGVStub(MOs[3].getGlobal(), TM))) - return NULL; } else if (i == 0) { // If operand 0 - // Can't write back to CPI or a GV stub. - if (MOs[3].isCPI() || - (MOs[3].isGlobal() && isGVStub(MOs[3].getGlobal(), TM))) - return NULL; if (MI->getOpcode() == X86::MOV16r0) NewMI = MakeM0Inst(*this, X86::MOV16mi, MOs, MI); else if (MI->getOpcode() == X86::MOV32r0) |