[PATCH] D77869: [VPlan] Introduce VPWidenSelectRecipe (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 06:25:43 PDT 2020


fhahn created this revision.
fhahn added reviewers: gilr, rengolin, Ayal, hsaito.
Herald added subscribers: psnobl, rogfer01, rkruppe, tschuett, bollu, hiraditya.
Herald added a project: LLVM.
fhahn retitled this revision from "[VPlan] Introduce VPWidenSelectRecipie (NFC)." to "[VPlan] Introduce VPWidenSelectRecipe (NFC).".

Widening a selects depends on whether the condition is loop invariant or
not. Rather than checking during codegen-time, the information can be
recorded at the VPlan construction time.

This was suggested as part of D76992 <https://reviews.llvm.org/D76992>, to reduce the reliance on
accessing the original underlying IR values.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77869

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77869.256558.patch
Type: text/x-patch
Size: 11740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/5162478a/attachment.bin>


More information about the llvm-commits mailing list