[PATCH] Vectorizer: Refactor code for runtime checks generation.

hfinkel at anl.gov hfinkel at anl.gov
Mon Jun 22 15:25:08 PDT 2015


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:2077
@@ -2076,3 @@
-  // contain a definition of the start index.
-  Instruction *OverflowCheckAnchor = BinaryOperator::CreateAdd(
-      StartIdx, ConstantInt::get(IdxTy, 0), "overflow.check.anchor",
----------------
Are you eliminating the need for this anchor instruction because you're splitting the block later?


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:2117
@@ +2116,3 @@
+
+  // Generate code to check that the loops trip count that we computed by adding
+  // one to the backedge-taken count will not overflow.
----------------
loops -> loop's

http://reviews.llvm.org/D10097

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






More information about the llvm-commits mailing list