diff options
author | Eric Christopher <echristo@apple.com> | 2010-11-29 21:56:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-11-29 21:56:23 +0000 |
commit | 43b0c6d94ffd7f82eb8d2278ec5a182fa109e962 (patch) | |
tree | ad0c5da77b73e32136ea6e7d7bef3a52af6b6c0d /llvm/lib | |
parent | 28218aa8f15c01424f3b5c1ddaa298814215970c (diff) | |
download | bcm5719-llvm-43b0c6d94ffd7f82eb8d2278ec5a182fa109e962.tar.gz bcm5719-llvm-43b0c6d94ffd7f82eb8d2278ec5a182fa109e962.zip |
Update fastisel for the changes in r120272.
llvm-svn: 120324
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index a0e6bc812e1..50ec370d7ff 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/lib/Target/ARM/ARMFastISel.cpp @@ -1740,7 +1740,9 @@ bool ARMFastISel::ARMEmitLibcall(const Instruction *I, RTLIB::Libcall Call) { 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. @@ -1849,8 +1851,10 @@ bool ARMFastISel::SelectCall(const Instruction *I) { 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) |