Remove redundant fold call introduced in r195944. Thanks very much to Juergen
authorLang Hames <lhames@gmail.com>
Thu, 2 Jan 2014 19:38:41 +0000 (19:38 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 2 Jan 2014 19:38:41 +0000 (19:38 +0000)
for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198341 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInstrInfo.cpp

index bdb1a6cefe5a113f16d35911d6c9e72f24680aa5..29249cfc8f6be1763a3bfdf881285dd4837b264d 100644 (file)
@@ -531,9 +531,8 @@ TargetInstrInfo::foldMemoryOperand(MachineBasicBlock::iterator MI,
     NewMI = foldPatchpoint(MF, MI, Ops, FrameIndex, *this);
   } else {
     // Ask the target to do the actual folding.
-    NewMI =foldMemoryOperandImpl(MF, MI, Ops, LoadMI);
+    NewMI = foldMemoryOperandImpl(MF, MI, Ops, LoadMI);
   }
-  foldMemoryOperandImpl(MF, MI, Ops, LoadMI);
 
   if (!NewMI) return 0;