Skip to content

AArch64 patchpoint implementation fails to clobber lr #39587

Open
@linzj

Description

@linzj
Bugzilla Link 40240
Version 7.0
OS Linux
CC @Arnaud-de-Grandmaison-ARM,@kbeyls,@smithp35

Extended Description

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:AArch64bugzillaIssues migrated from bugzillaincompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions