1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[SelectionDAG] Simplify SelectionDAGBuilder::visitInlineAsm

This commit is contained in:
Fangrui Song 2019-12-29 21:53:34 -08:00
parent 383070d58d
commit 7c12bf41e5

View File

@ -8181,7 +8181,6 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
AsmNodeOperands.push_back(DAG.getTargetConstant(OpFlags, getCurSDLoc(), AsmNodeOperands.push_back(DAG.getTargetConstant(OpFlags, getCurSDLoc(),
MVT::i32)); MVT::i32));
AsmNodeOperands.push_back(OpInfo.CallOperand); AsmNodeOperands.push_back(OpInfo.CallOperand);
break;
} else { } else {
// Otherwise, this outputs to a register (directly for C_Register / // Otherwise, this outputs to a register (directly for C_Register /
// C_RegisterClass, and a target-defined fashion for // C_RegisterClass, and a target-defined fashion for
@ -8318,8 +8317,7 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
} }
assert((OpInfo.ConstraintType == TargetLowering::C_RegisterClass || assert((OpInfo.ConstraintType == TargetLowering::C_RegisterClass ||
OpInfo.ConstraintType == TargetLowering::C_Register || OpInfo.ConstraintType == TargetLowering::C_Register) &&
OpInfo.ConstraintType == TargetLowering::C_Immediate) &&
"Unknown constraint type!"); "Unknown constraint type!");
// TODO: Support this. // TODO: Support this.