diff options
author | Eric Christopher <echristo@apple.com> | 2010-08-24 22:34:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-08-24 22:34:11 +0000 |
commit | 992ea38e0e35f3700a76f49443fb134e7fcb46be (patch) | |
tree | e14b36b1bc38a8ba7d6f7671ea5304b256152880 /lib/Target/ARM/ARMFastISel.cpp | |
parent | e24d66f525825a96ee76508076696936451902be (diff) | |
download | external_llvm-992ea38e0e35f3700a76f49443fb134e7fcb46be.zip external_llvm-992ea38e0e35f3700a76f49443fb134e7fcb46be.tar.gz external_llvm-992ea38e0e35f3700a76f49443fb134e7fcb46be.tar.bz2 |
Fix predicate and add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 51dbfc2..4336735 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -418,7 +418,8 @@ bool ARMFastISel::ARMSelectLoad(const Instruction *I) { // 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)); |