mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
R600/SI: Use ZeroOrNegativeOneBooleanContent
This sort of doesn't matter since the setcc type is i1, but this previously was using the default UndefinedBooleanContent. This makes it more consistent with R600. This enables more optimizations which typically give up on UndefinedBooleanContent. For example, there is already a special case target DAG combine for setcc + sext which can be eliminated in favor of what the generic DAG combiner can do if it assumes boolean values are sign extended. Since -1 is an inline immediate, using it is basically free and the backend already uses it when a boolean value is needed in a wider type. llvm-svn: 222850
This commit is contained in:
parent
0872710917
commit
796e0c24e7
@ -382,6 +382,9 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
|
|||||||
setTargetDAGCombine(ISD::SELECT_CC);
|
setTargetDAGCombine(ISD::SELECT_CC);
|
||||||
setTargetDAGCombine(ISD::STORE);
|
setTargetDAGCombine(ISD::STORE);
|
||||||
|
|
||||||
|
setBooleanContents(ZeroOrNegativeOneBooleanContent);
|
||||||
|
setBooleanVectorContents(ZeroOrNegativeOneBooleanContent);
|
||||||
|
|
||||||
setSchedulingPreference(Sched::RegPressure);
|
setSchedulingPreference(Sched::RegPressure);
|
||||||
setJumpIsExpensive(true);
|
setJumpIsExpensive(true);
|
||||||
|
|
||||||
|
@ -186,8 +186,6 @@ R600TargetLowering::R600TargetLowering(TargetMachine &TM) :
|
|||||||
setOperationAction(ISD::SUBE, VT, Expand);
|
setOperationAction(ISD::SUBE, VT, Expand);
|
||||||
}
|
}
|
||||||
|
|
||||||
setBooleanContents(ZeroOrNegativeOneBooleanContent);
|
|
||||||
setBooleanVectorContents(ZeroOrNegativeOneBooleanContent);
|
|
||||||
setSchedulingPreference(Sched::Source);
|
setSchedulingPreference(Sched::Source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user