[PATCH] D32040: [LV] Remove implicit single basic block assumption

Michael Kuperstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 13:00:41 PDT 2017


mkuper accepted this revision.
mkuper added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:5054
   // single loop.
   DT->addNewBlock(LoopVectorBody, LoopVectorPreHeader);
 
----------------
Should this be 
```
DT->addNewBlock(LI->getLoopFor(LoopVectorBody)->getHeader(), LoopVectorPreHeader);
```
as long as we're at it?


https://reviews.llvm.org/D32040





More information about the llvm-commits mailing list