mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[FastISel] Insert patchpoint instruction before the target generated call instruction.
The patchpoint instruction should have been inserted before the target generated call instruction to be inside the ADJSTACKDOWN/ADJSTACKUP call sequence window. llvm-svn: 213034
This commit is contained in:
parent
23901e5103
commit
bf808a1bcc
@ -826,7 +826,8 @@ bool FastISel::SelectPatchpoint(const CallInst *I) {
|
||||
Ops.push_back(MachineOperand::CreateReg(Reg, /*IsDef=*/true,
|
||||
/*IsImpl=*/true));
|
||||
|
||||
MachineInstrBuilder MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
|
||||
// Insert the patchpoint instruction before the call generated by the target.
|
||||
MachineInstrBuilder MIB = BuildMI(*FuncInfo.MBB, CLI.Call, DbgLoc,
|
||||
TII.get(TargetOpcode::PATCHPOINT));
|
||||
|
||||
for (auto &MO : Ops)
|
||||
|
Loading…
Reference in New Issue
Block a user