[llvm-commits] [llvm] r116339 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Tue Oct 12 14:23:43 PDT 2010
Author: echristo
Date: Tue Oct 12 16:23:43 2010
New Revision: 116339
URL: http://llvm.org/viewvc/llvm-project?rev=116339&view=rev
Log:
Fix thinko in arm fast isel alloca rewrite.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=116339&r1=116338&r2=116339&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Tue Oct 12 16:23:43 2010
@@ -764,7 +764,7 @@
break;
}
- if (SrcReg == ARM::SP)
+ if (DstReg == ARM::SP)
TII.storeRegToStackSlot(*FuncInfo.MBB, *FuncInfo.InsertPt,
SrcReg, true /*isKill*/, Offset,
TLI.getRegClassFor(VT), TM.getRegisterInfo());
More information about the llvm-commits
mailing list