OSDN Git Service

[AVX512] Add a missing NoVLX to give priority to the AVX512 version of the pattern.
authorCraig Topper <craig.topper@gmail.com>
Wed, 20 Jul 2016 05:05:50 +0000 (05:05 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 20 Jul 2016 05:05:50 +0000 (05:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSSE.td

index e6ea2a5..de7e753 100644 (file)
@@ -8278,7 +8278,7 @@ def : Pat<(v4i32 (X86VBroadcast (loadi32 addr:$src))),
 
   // Provide fallback in case the load node that is used in the patterns above
   // is used by additional users, which prevents the pattern selection.
-let Predicates = [HasAVX], AddedComplexity = 20 in {
+let Predicates = [HasAVX, NoVLX], AddedComplexity = 20 in {
   // 128bit broadcasts:
   def : Pat<(v2f64 (X86VBroadcast f64:$src)),
             (VMOVDDUPrr (COPY_TO_REGCLASS FR64:$src, VR128))>;