[llvm] r196390 - Update the UseFusedMAC definition to directly specify its dependence on having

Chad Rosier mcrosier at codeaurora.org
Wed Dec 4 09:16:36 PST 2013


Author: mcrosier
Date: Wed Dec  4 11:16:36 2013
New Revision: 196390

URL: http://llvm.org/viewvc/llvm-project?rev=196390&view=rev
Log:
Update the UseFusedMAC definition to directly specify its dependence on having
VFP4.
Patch by Daniel Stewart!

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrInfo.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=196390&r1=196389&r2=196390&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Wed Dec  4 11:16:36 2013
@@ -275,7 +275,8 @@ def UseMulOps        : Predicate<"Subtar
 // But only select them if more precision in FP computation is allowed.
 // Do not use them for Darwin platforms.
 def UseFusedMAC      : Predicate<"(TM.Options.AllowFPOpFusion =="
-                                 " FPOpFusion::Fast) && "
+                                 " FPOpFusion::Fast && "
+                                 " Subtarget->hasVFP4()) && "
                                  "!Subtarget->isTargetDarwin()">;
 def DontUseFusedMAC  : Predicate<"!(TM.Options.AllowFPOpFusion =="
                                  " FPOpFusion::Fast &&"





More information about the llvm-commits mailing list