forked from OSchip/llvm-project
[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
b30adfb529
commit
248a67f144
|
@ -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