Thumb-2: fix typo that caused incorrect stack elimination for VFP operations and...
authorDavid Goodwin <david_goodwin@apple.com>
Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)
committerDavid Goodwin <david_goodwin@apple.com>
Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)
llvm-svn: 77401

llvm/lib/Target/ARM/Thumb2InstrInfo.cpp

index 0c31820..b3e5d7e 100644 (file)
@@ -415,7 +415,7 @@ int llvm::rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
     }
       
     // Otherwise, offset doesn't fit. Pull in what we can to simplify
-    ImmedOffset = Offset & Mask;
+    ImmedOffset = ImmedOffset & Mask;
     if (isSub) {
       if (AddrMode == ARMII::AddrMode5)
         // FIXME: Not consistent.