https://bugs.llvm.org/show_bug.cgi?id=40240

            Bug ID: 40240
           Summary: AArch64 patchpoint implementation fails to clobber lr
           Product: new-bugs
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

casual implementation:
  case TargetOpcode::STACKMAP:
  case TargetOpcode::PATCHPOINT:
    return emitPatchPoint(MI, BB);

should be:
{
  MachineBasicBlock* MBB2 = TargetLoweringBase::emitPatchPoint(MI, MBB);
  MachineFunction &MF = *MI.getMF();
  MI.addOperand(MF, MachineOperand::CreateReg(AArch64::LR, true, true));
  return MBB2;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to