[PowerPC] Respect chain operand for llvm.ppc.disassemble.dmr lowering (#188334)
Fix ignoring the input chain when turning llvm.ppc.disassemble.dmr into a store.
This commit is contained in:
parent
bdf28a6d48
commit
db80420930
@ -11596,7 +11596,9 @@ SDValue PPCTargetLowering::LowerINTRINSIC_VOID(SDValue Op,
|
||||
0);
|
||||
}
|
||||
case Intrinsic::ppc_disassemble_dmr: {
|
||||
return DAG.getStore(DAG.getEntryNode(), DL, Op.getOperand(ArgStart + 2),
|
||||
assert(ArgStart == 1 &&
|
||||
"llvm.ppc.disassemble.dmr must carry a chain argument.");
|
||||
return DAG.getStore(Op.getOperand(0), DL, Op.getOperand(ArgStart + 2),
|
||||
Op.getOperand(ArgStart + 1), MachinePointerInfo());
|
||||
}
|
||||
case Intrinsic::ppc_amo_stwat:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user