mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 13:20:29 +00:00
[Statepoint] Turn assert into check in foldPatchpoint.
Original D81646 had check for tied regs in foldPatchpoint(). Due to unfortunate miscommunication with review comments and adressing some comments post commit, it turned into assertion. We had an offline talk and agreed that with current implementation this path is possible, so I'm changing it back to check. Note that this is workaround until ussues described in PR46917 are resolved.
This commit is contained in:
parent
710437b36d
commit
2a1fa7b84c
@ -499,14 +499,14 @@ static MachineInstr *foldPatchpoint(MachineFunction &MF, MachineInstr &MI,
|
||||
// Return false if any operands requested for folding are not foldable (not
|
||||
// part of the stackmap's live values).
|
||||
for (unsigned Op : Ops) {
|
||||
// Caller is expected to avoid passing in tied operands
|
||||
assert(!MI.getOperand(Op).isTied());
|
||||
if (Op < NumDefs) {
|
||||
assert(DefToFoldIdx == MI.getNumOperands() && "Folding multiple defs");
|
||||
DefToFoldIdx = Op;
|
||||
} else if (Op < StartIdx) {
|
||||
return nullptr;
|
||||
}
|
||||
if (MI.getOperand(Op).isTied())
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
MachineInstr *NewMI =
|
||||
|
Loading…
Reference in New Issue
Block a user