From c3168129af076483402f40fcddc8337950ffabbd Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Mon, 19 Jan 2015 07:44:45 +0000 Subject: [PATCH] [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. llvm-svn: 226434 --- llvm/lib/Target/PowerPC/PPCFastISel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCFastISel.cpp b/llvm/lib/Target/PowerPC/PPCFastISel.cpp index 791dbbc..2682bc0 100644 --- a/llvm/lib/Target/PowerPC/PPCFastISel.cpp +++ b/llvm/lib/Target/PowerPC/PPCFastISel.cpp @@ -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(). -- 2.7.4