From: Eric Christopher Date: Tue, 12 Oct 2010 21:23:43 +0000 (+0000) Subject: Fix thinko in arm fast isel alloca rewrite. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=558cf007b5ed92324156b29861a0acbf95442278;p=oota-llvm.git Fix thinko in arm fast isel alloca rewrite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index ee3a87e21d6..418a9852ebc 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -764,7 +764,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, break; } - if (SrcReg == ARM::SP) + if (DstReg == ARM::SP) TII.storeRegToStackSlot(*FuncInfo.MBB, *FuncInfo.InsertPt, SrcReg, true /*isKill*/, Offset, TLI.getRegClassFor(VT), TM.getRegisterInfo());