[PATCH] D123537: [VPlan] Model first exit values in VPlan.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 12:52:44 PDT 2022


fhahn created this revision.
fhahn added reviewers: Ayal, gilr, rengolin.
Herald added subscribers: tschuett, psnobl, rogfer01, bollu, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a subscriber: vkmr.
Herald added a project: LLVM.

This patch introduces a new VPInstruction opcode to model exit values
explicitly. The initial ExitValue VPInstruction handles exit values that
are neither part of induction or reduction chains nor first order
recurrence phis.

Fixes #51366.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123537

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-avoid-scalarization.ll
  llvm/test/Transforms/LoopVectorize/X86/invariant-load-gather.ll
  llvm/test/Transforms/LoopVectorize/X86/pr51366-sunk-instruction-used-outside-of-loop.ll
  llvm/test/Transforms/LoopVectorize/extract-last-veclane.ll
  llvm/test/Transforms/LoopVectorize/instruction-only-used-outside-of-loop.ll
  llvm/test/Transforms/LoopVectorize/optimal-epilog-vectorization-liveout.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123537.422012.patch
Type: text/x-patch
Size: 16693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220411/34383cf1/attachment-0001.bin>


More information about the llvm-commits mailing list