Skip to content

Commit 18420d8

Browse files
authored
CodeGen: Do not define LOCAL_ESCAPE with ptr_rc (#158765)
ptr_rc is used to resolve an operand to a register class. This is not used with a virtual register, but a label so remove the use.
1 parent 53e9d31 commit 18420d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Target/Target.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,9 +1415,9 @@ def PREALLOCATED_ARG : StandardPseudoInstruction {
14151415
def LOCAL_ESCAPE : StandardPseudoInstruction {
14161416
// This instruction is really just a label. It has to be part of the chain so
14171417
// that it doesn't get dropped from the DAG, but it produces nothing and has
1418-
// no side effects.
1418+
// no side effects. Symbol operand is expected to be a label.
14191419
let OutOperandList = (outs);
1420-
let InOperandList = (ins ptr_rc:$symbol, i32imm:$id);
1420+
let InOperandList = (ins unknown:$symbol, i32imm:$id);
14211421
let hasSideEffects = false;
14221422
let hasCtrlDep = true;
14231423
}

0 commit comments

Comments
 (0)