[PATCH] D35320: [X86][SSE] Add support for extending bool vectors bitcasted from scalars.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 10:35:34 PDT 2017


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:34419
+  for (int i = 0; i != NumElts; ++i) {
+    int BitIdx = (i % EltSizeInBits);
+    APInt Bit = APInt::getBitsSet(EltSizeInBits, BitIdx, BitIdx + 1);
----------------
delena wrote:
> EltSizeInBits should be equal to NumElts.
EltSizeInBits means the extended vector element size (v8i16: NumElts == 8, EltSizeInBits == 16). SclVT.getSizeInBits() would equal NumElts.


Repository:
  rL LLVM

https://reviews.llvm.org/D35320





More information about the llvm-commits mailing list