[PATCH] D43339: [SLP] Vectorize reversed stores.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 11:11:35 PDT 2019


RKSimon added inline comments.


================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:2665
+        // Check that the sorted pointer operands are consecutive.
+        if (Diff && Diff->getAPInt().getZExtValue() == (VL.size() - 1) * Size) {
+          if (CurrentOrder.empty()) {
----------------
You don't need the getZExtValue()
```
Diff->getAPInt() == (VL.size() - 1) * Size
```


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D43339/new/

https://reviews.llvm.org/D43339





More information about the llvm-commits mailing list