[PATCH] D46957: [x86] Lower some trunc + shuffle patterns to vpmov[q|d][b|w]

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 12:07:44 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:9414
+
+  if (SwappedOps) {
+    // Look for e.g.: <8, 10, 12, 14, 0, 0, 0, 0>
----------------
Instead of repeating for SwappedOps - can't you just use start/end values? Else take a local copy of the shuffle mask and use ShuffleVectorSDNode::commuteMask?


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:9418
+    // These should refer to the second vectors elements
+    while (I < N) {
+      if (Mask[I] != Size + I * delta)
----------------
Can you use the shuffle mask helpers for any/all of these - isUndefOrInRange etc?


https://reviews.llvm.org/D46957





More information about the llvm-commits mailing list