[PATCH] D139758: [LV] Cleanup widening of Phi instructions. NFC.

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 17:25:05 PST 2022


michaelmaitland created this revision.
michaelmaitland added reviewers: reames, fhahn, nikolaypanchenko.
Herald added subscribers: rogfer01, hiraditya.
Herald added a project: All.
michaelmaitland requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, vkmr.
Herald added a project: LLVM.

- Refactor creating Phi recipe out of `tryToCreateWidenRecipe()` and into

its own function since `tryToCreateWidenRecipe()` is multiple pages long.

- Change assert into `llvm_unreachable` to avoid calling the same Legality

functions multiple times.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139758

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139758.481804.patch
Type: text/x-patch
Size: 5996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221210/0507e041/attachment.bin>


More information about the llvm-commits mailing list