[PowerPC] Minor correction to r226432
authorHal Finkel <hfinkel@anl.gov>
Mon, 19 Jan 2015 07:44:45 +0000 (07:44 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 19 Jan 2015 07:44:45 +0000 (07:44 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226434 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFastISel.cpp

index 791dbbc5c422fec15ef8e25d080009c38839740a..2682bc0df535daad26c392ac005bc8f81d480498 100644 (file)
@@ -1526,8 +1526,7 @@ bool PPCFastISel::fastLowerCall(CallLoweringInfo &CLI) {
 
   // 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().