[PATCH] D20241: [LV] Respect max VF for interleaved accesses

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 07:17:14 PDT 2016


mssimpso marked 2 inline comments as done.

================
Comment at: lib/Analysis/LoopAccessAnalysis.cpp:1215-1218
@@ -1206,4 +1214,6 @@
     if (IsTrueDataDependence &&
-        (couldPreventStoreLoadForward(Val.abs().getZExtValue(), TypeByteSize) ||
+        ((EnableStoreLoadForwardOpt &&
+          couldPreventStoreLoadForward(Val.abs().getZExtValue(),
+                                       TypeByteSize)) ||
          ATy != BTy)) {
       DEBUG(dbgs() << "LAA: Forward but may prevent st->ld forwarding\n");
----------------
anemet wrote:
> Don't we want to also disable for the ATy != BTy case?
Yes, thanks for catching that!


http://reviews.llvm.org/D20241





More information about the llvm-commits mailing list