[PATCH] D26802: [X86][AVX512] Detect repeated constant patterns in BUILD_VECTOR suitable for broadcasting.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 05:31:33 PST 2016


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:6037
+    APInt Val = APInt(SplatValue);
+    Val = Val.lshr(ScalarSize * i).trunc(ScalarSize);
+    Constant *Const;
----------------
This can be reduced to:
APInt Val = SplatValue.lshr(ScalarSize * i).trunc(ScalarSize);


https://reviews.llvm.org/D26802





More information about the llvm-commits mailing list