Optionally enable more-aggressive FMA formation in DAGCombine
[oota-llvm.git] / lib / Target / PowerPC / PPCISelLowering.cpp
index 6eded03313d9620731b9cf626bb51ec5fb824930..fd188fe37e2e6214c721b040d2d708a2372bdd9b 100644 (file)
@@ -826,6 +826,11 @@ EVT PPCTargetLowering::getSetCCResultType(LLVMContext &, EVT VT) const {
   return VT.changeVectorElementTypeToInteger();
 }
 
+bool PPCTargetLowering::enableAggressiveFMAFusion(EVT VT) const {
+  assert(VT.isFloatingPoint() && "Non-floating-point FMA?");
+  return true;
+}
+
 //===----------------------------------------------------------------------===//
 // Node matching predicates, for use by the tblgen matching code.
 //===----------------------------------------------------------------------===//