R600/SI: Add subtarget feature for if f32 fma is fast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault
2015-01-29 19:34:25 +00:00
parent 30a5d21457
commit c416d94735
5 changed files with 23 additions and 5 deletions

View File

@@ -655,7 +655,7 @@ bool SITargetLowering::isFMAFasterThanFMulAndFAdd(EVT VT) const {
switch (VT.getSimpleVT().SimpleTy) {
case MVT::f32:
return false; /* There is V_MAD_F32 for f32 */
return Subtarget->hasFastFMAF32();
case MVT::f64:
return true;
default: