From: Eli Friedman Date: Thu, 9 Jun 2011 19:33:30 +0000 (+0000) Subject: Revert 132789; it breaks tests. My mistake. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6f19c67d8485ae8efe55e0527b3236b03af2c756;p=oota-llvm.git Revert 132789; it breaks tests. My mistake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132795 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index f98497f654b..18d71da4741 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -2392,10 +2392,6 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF, return 0; } - // Conservatively fail out for loads without a memoperand. - if (LoadMI->memoperands_empty()) - return 0; - // Determine the alignment of the load. unsigned Alignment = 0; if (LoadMI->hasOneMemOperand())