[llvm] r226434 - [PowerPC] Minor correction to r226432

Hal Finkel hfinkel at anl.gov
Sun Jan 18 23:44:45 PST 2015

Author: hfinkel
Date: Mon Jan 19 01:44:45 2015
New Revision: 226434

URL: http://llvm.org/viewvc/llvm-project?rev=226434&view=rev
[PowerPC] Minor correction to r226432

We don't need to exclude patchpoints from the implicit r2 dependence in
FastISel because it is added as an implicit operand and, thus, should not
confuse that StackMap code.

By inspection / no test case.


Modified: llvm/trunk/lib/Target/PowerPC/PPCFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCFastISel.cpp?rev=226434&r1=226433&r2=226434&view=diff
--- llvm/trunk/lib/Target/PowerPC/PPCFastISel.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCFastISel.cpp Mon Jan 19 01:44:45 2015
@@ -1526,8 +1526,7 @@ bool PPCFastISel::fastLowerCall(CallLowe
   // Direct calls, in both the ELF V1 and V2 ABIs, need the TOC register live
   // into the call.
-  if (!CLI.IsPatchPoint)
-    MIB.addReg(PPC::X2, RegState::Implicit);
+  MIB.addReg(PPC::X2, RegState::Implicit);
   // Add a register mask with the call-preserved registers.  Proper
   // defs for return values will be added by setPhysRegsDeadExcept().

More information about the llvm-commits mailing list