mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-07 12:30:44 +00:00
eliminate more redundant constraint type analysis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36546 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a600be226
commit
c83994e5d4
@ -3320,12 +3320,8 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
|||||||
|
|
||||||
switch (OpInfo.Type) {
|
switch (OpInfo.Type) {
|
||||||
case InlineAsm::isOutput: {
|
case InlineAsm::isOutput: {
|
||||||
TargetLowering::ConstraintType CTy = TargetLowering::C_RegisterClass;
|
if (OpInfo.ConstraintType != TargetLowering::C_RegisterClass &&
|
||||||
if (OpInfo.ConstraintCode.size() == 1) // not a physreg name.
|
OpInfo.ConstraintType != TargetLowering::C_Register) {
|
||||||
CTy = TLI.getConstraintType(OpInfo.ConstraintCode);
|
|
||||||
|
|
||||||
if (CTy != TargetLowering::C_RegisterClass &&
|
|
||||||
CTy != TargetLowering::C_Register) {
|
|
||||||
// Memory output, or 'other' output (e.g. 'X' constraint).
|
// Memory output, or 'other' output (e.g. 'X' constraint).
|
||||||
SDOperand InOperandVal = OpInfo.CallOperand;
|
SDOperand InOperandVal = OpInfo.CallOperand;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user