[llvm] r276087 - [X86] Use 'HasAVX1Only' to properly give priority to the AVX2 version without relying on file ordering.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 22:05:48 PDT 2016
Author: ctopper
Date: Wed Jul 20 00:05:48 2016
New Revision: 276087
URL: http://llvm.org/viewvc/llvm-project?rev=276087&view=rev
Log:
[X86] Use 'HasAVX1Only' to properly give priority to the AVX2 version without relying on file ordering.
Modified:
llvm/trunk/lib/Target/X86/X86InstrSSE.td
Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=276087&r1=276086&r2=276087&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Wed Jul 20 00:05:48 2016
@@ -8284,7 +8284,7 @@ let Predicates = [HasAVX], AddedComplexi
(VMOVDDUPrr (COPY_TO_REGCLASS FR64:$src, VR128))>;
}
-let Predicates = [HasAVX, NoVLX], AddedComplexity = 20 in {
+let Predicates = [HasAVX1Only], AddedComplexity = 20 in {
def : Pat<(v4f32 (X86VBroadcast FR32:$src)),
(VPSHUFDri (COPY_TO_REGCLASS FR32:$src, VR128), 0)>;
def : Pat<(v8f32 (X86VBroadcast FR32:$src)),
More information about the llvm-commits
mailing list