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

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 09:38:00 PDT 2018


anna added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:3727
+      if (isa<Instruction>(IncomingValue)) 
+          LastLane = Cost->isUniformAfterVectorization(
+                         cast<Instruction>(IncomingValue), VF)
----------------
I have trouble getting a test case that exercises this path. Tried couple of different uniform instructions (GEPs with constant operands). In all cases, we were vectorizing these and then extracting the VF -1 th element. 
Any ideas on what will be a good test case for this? Thanks.



Repository:
  rL LLVM

https://reviews.llvm.org/D50778





More information about the llvm-commits mailing list