[PATCH] [LoopVectorize]Teach Loop Vectorizer about interleaved memory access

Renato Golin renato.golin at linaro.org
Mon May 11 04:33:51 PDT 2015


================
Comment at: lib/Analysis/LoopAccessAnalysis.cpp:772
@@ +771,3 @@
+  // If one passed-in parameter is not forced, notice that the number is 0. Then
+  // we need to adjust it.
+  unsigned NumIter = ForcedFactor * ForcedUnroll;
----------------
I think you made this code more complicated for no reason.

Just adding...

    unsigned NumIter = std::max(ForcedFactor * ForcedUnroll, 2);

after the original lines would do what you want.

http://reviews.llvm.org/D9368

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list