mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-30 16:34:03 +00:00
R600: Select is not expensive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ad2c7ef92
commit
6272302394
@ -361,6 +361,9 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
|
||||
setSchedulingPreference(Sched::RegPressure);
|
||||
setJumpIsExpensive(true);
|
||||
|
||||
setSelectIsExpensive(false);
|
||||
PredictableSelectIsExpensive = false;
|
||||
|
||||
// There are no integer divide instructions, and these expand to a pretty
|
||||
// large sequence of instructions.
|
||||
setIntDivIsCheap(false);
|
||||
@ -383,6 +386,10 @@ MVT AMDGPUTargetLowering::getVectorIdxTy() const {
|
||||
return MVT::i32;
|
||||
}
|
||||
|
||||
bool AMDGPUTargetLowering::isSelectSupported(SelectSupportKind SelType) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
// The backend supports 32 and 64 bit floating point immediates.
|
||||
// FIXME: Why are we reporting vectors of FP immediates as legal?
|
||||
bool AMDGPUTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
|
||||
|
Loading…
Reference in New Issue
Block a user