[PATCH] D26555: [LV] Keep predicated instructions in the same block

Gil Rapaport via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 10:06:11 PST 2016


gilr added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:7099
 
-  VectorParts Cond;
-  if (IfPredicateInstr)
-    Cond = createBlockInMask(Instr->getParent());
+  // If the instruction requires predication, emit the edge masks for its
+  // predecessor blocks. The masks will be stored in MaskCache and made
----------------
Why force the creation of the edge masks here?


https://reviews.llvm.org/D26555





More information about the llvm-commits mailing list