[PATCH] D78287: [VPlan] Clean up tryToCreate(Widen)Recipe. (NFC)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 03:23:25 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.

This patch includes some clean-ups to tryToCreateRecipe, suggested in
D77973 <https://reviews.llvm.org/D77973>.

It includes:

- Renaming tryToCreateRecipe to tryToCreateWidenRecipe.
- Move VPBB insertion logic to caller of tryToCreateWidenRecipe.
- Hoists instruction checks to tryToCreateWidenRecipe, making it clearer which instructions are handled by which recipe, simplifying the checks by using early exits.
- Split up handling of induction PHIs and truncates using inductions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78287

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78287.258000.patch
Type: text/x-patch
Size: 12215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/f3b28091/attachment.bin>


More information about the llvm-commits mailing list