[PATCH] D41341: [X86] Disable 512-bit vectors during type legalization for prefer-vector-width

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 17:51:01 PST 2018


echristo added inline comments.


================
Comment at: lib/Target/X86/X86Subtarget.h:590
+  bool useAVX512Regs() const {
+    return hasAVX512() && !(hasVLX() && PreferVecWidth256 && No512BitVectors);
+  }
----------------
I think I'd rather a preferred-vector-width attribute rather than the combination of 128/256/etc features.

Thoughts?


https://reviews.llvm.org/D41341





More information about the llvm-commits mailing list