[llvm-commits] [llvm] r162454 - /llvm/trunk/lib/Target/X86/X86Subtarget.h
Craig Topper
craig.topper at gmail.com
Thu Aug 23 11:14:30 PDT 2012
Author: ctopper
Date: Thu Aug 23 13:14:30 2012
New Revision: 162454
URL: http://llvm.org/viewvc/llvm-project?rev=162454&view=rev
Log:
Favor FMA3 over FMA4 if both are enabled.
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.h
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.h?rev=162454&r1=162453&r2=162454&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.h (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.h Thu Aug 23 13:14:30 2012
@@ -205,7 +205,8 @@
bool hasAES() const { return HasAES; }
bool hasPCLMUL() const { return HasPCLMUL; }
bool hasFMA() const { return HasFMA; }
- bool hasFMA4() const { return HasFMA4; }
+ // FIXME: Favor FMA when both are enabled. Is this right?
+ bool hasFMA4() const { return HasFMA4 && !HasFMA; }
bool hasXOP() const { return HasXOP; }
bool hasMOVBE() const { return HasMOVBE; }
bool hasRDRAND() const { return HasRDRAND; }
More information about the llvm-commits
mailing list