[PATCH] D63981: [LV] Avoid building interleaved group in presence of WAW dependency

Evgeniy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 04:28:50 PDT 2019


ebrevnov added inline comments.


================
Comment at: include/llvm/Analysis/VectorUtils.h:612
+                        ? cast<StoreInst>(Src)->getPointerOperand()
+                        : cast<LoadInst>(Src)->getPointerOperand();
+      auto SinkPtr = isa<StoreInst>(Sink)
----------------
Ayal wrote:
> Src and Sink should only be StoreInst's here, right?
On enter to canReorderMemAccessesForInterleavedGroups we can have load or store only. mayWriteToMemory treats some types of loads as writing to memory. Thus load is possible here as well.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63981





More information about the llvm-commits mailing list