[llvm-bugs] [Bug 40240] New: AArch64 patchpoint implementation fails to clobber lr

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 6 21:59:06 PST 2019


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: unassignedbugs at nondot.org
          Reporter: manjian2006 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190107/0a460e54/attachment.html>


More information about the llvm-bugs mailing list