[llvm-branch-commits] [llvm-branch] r123008 - /llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp

Daniel Dunbar daniel at zuster.org
Fri Jan 7 11:32:26 PST 2011


Author: ddunbar
Date: Fri Jan  7 13:32:26 2011
New Revision: 123008

URL: http://llvm.org/viewvc/llvm-project?rev=123008&view=rev
Log:
Merge r120324:
--
Author: Eric Christopher <echristo at apple.com>
Date:   Mon Nov 29 21:56:23 2010 +0000

    Update fastisel for the changes in r120272.

Modified:
    llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp

Modified: llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp?rev=123008&r1=123007&r2=123008&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/branches/Apple/whitney/lib/Target/ARM/ARMFastISel.cpp Fri Jan  7 13:32:26 2011
@@ -1675,7 +1675,9 @@
     CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi;
   else
     CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
-  MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc))
+  // Explicitly adding the predicate here.
+  MIB = AddDefaultPred(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
+                       TII.get(CallOpc)))
         .addExternalSymbol(TLI.getLibcallName(Call));
 
   // Add implicit physical register uses to the call.
@@ -1784,8 +1786,10 @@
     CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi;
   else
     CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
-  MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc))
-              .addGlobalAddress(GV, 0, 0);
+  // Explicitly adding the predicate here.
+  MIB = AddDefaultPred(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
+                               TII.get(CallOpc)))
+        .addGlobalAddress(GV, 0, 0);
 
   // Add implicit physical register uses to the call.
   for (unsigned i = 0, e = RegArgs.size(); i != e; ++i)





More information about the llvm-branch-commits mailing list