mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
Teach LocalStackSlotAllocation that stackmaps/patchpoints don't have range
constraints on their frame offsets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4dd359fcde
commit
d7d0669b4b
@ -233,9 +233,11 @@ bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) {
|
||||
for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) {
|
||||
MachineInstr *MI = I;
|
||||
|
||||
// Debug value instructions can't be out of range, so they don't need
|
||||
// any updates.
|
||||
if (MI->isDebugValue())
|
||||
// Debug value, stackmap and patchpoint instructions can't be out of
|
||||
// range, so they don't need any updates.
|
||||
if (MI->isDebugValue() ||
|
||||
MI->getOpcode() == TargetOpcode::STACKMAP ||
|
||||
MI->getOpcode() == TargetOpcode::PATCHPOINT)
|
||||
continue;
|
||||
|
||||
// For now, allocate the base register(s) within the basic block
|
||||
|
Loading…
Reference in New Issue
Block a user