[PATCH] D33994: [DAGCombiner] Add another combine from build vector to shuffle

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 01:32:40 PDT 2017


delena added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14010
       }
+    } else if (InVT2.getSizeInBits() * 2 == VT.getSizeInBits() &&
+               InVT1.getSizeInBits() == VT.getSizeInBits()) {
----------------
In the case above you'll find (VT.getSizeInBits() % InVT1.getSizeInBits() == 0). Is this your case
 (VT.getSizeInBits() % InVT2.getSizeInBits() == 0) ?


https://reviews.llvm.org/D33994





More information about the llvm-commits mailing list