[PATCH] D42447: [LV][VPlan] Detect outer loops for explicit vectorization.

Javed Absar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 11:25:14 PDT 2018


javed.absar added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:4947
   // We must have a single backedge.
-  if (TheLoop->getNumBackEdges() != 1) {
+  if (Lp->getNumBackEdges() != 1) {
     ORE->emit(createMissedAnalysis("CFGNotUnderstood")
----------------
Can we not simply check for isLoopSimplifyForm() ?


https://reviews.llvm.org/D42447





More information about the llvm-commits mailing list