[PATCH] D50778: [LV] Vectorize loops where non-phi instructions used outside loop

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 10:28:46 PDT 2018


hiraditya added subscribers: sebpop, hiraditya.
hiraditya added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorizationLegality.cpp:438
   // Reductions, Inductions and non-header phis are allowed to have exit users. All
   // other instructions must not have external users.
   if (!AllowedExit.count(Inst))
----------------
This would be trivial if we realize that outside user must be in a loop-closed phi node for a valid LCSSA, IIUC @sebpop ?


Repository:
  rL LLVM

https://reviews.llvm.org/D50778





More information about the llvm-commits mailing list