[llvm-commits] [llvm] r111981 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Tue Aug 24 15:34:11 PDT 2010
Author: echristo
Date: Tue Aug 24 17:34:11 2010
New Revision: 111981
URL: http://llvm.org/viewvc/llvm-project?rev=111981&view=rev
Log:
Fix predicate and add a comment.
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=111981&r1=111980&r2=111981&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Tue Aug 24 17:34:11 2010
@@ -418,7 +418,8 @@
// offset instead of 0 and do all sorts of operand munging.
unsigned ResultReg = createResultReg(FixedRC);
// TODO: Fix the Addressing modes so that these can share some code.
- if (AFI->isThumb2Function())
+ // Since this is a Thumb1 load this will work in Thumb1 or 2 mode.
+ if (AFI->isThumbFunction())
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
TII.get(ARM::tLDR), ResultReg)
.addReg(Reg).addImm(0).addReg(0));
More information about the llvm-commits
mailing list