[PATCH] D30200: [SLP] Fix for PR31880: shuffle and vectorize repeated scalar ops on extracted elements

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 08:59:53 PDT 2017


RKSimon added inline comments.


================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:1754
+        int Cost = TTI->getShuffleCost(ShuffleKind.getValue(), VecTy);
+        for (unsigned I = 0, E = VL.size(); I < E; ++I) {
+          // If all users of instruction are going to be vectorized and this
----------------
use for range loop?


https://reviews.llvm.org/D30200





More information about the llvm-commits mailing list