[PATCH] D114324: [LV] Move code from vectorizeMemoryInstruction to recipe's execute().

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 20 12:47:51 PST 2021


fhahn created this revision.
fhahn added reviewers: Ayal, gilr, rengolin.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

The code in widenMemoryInstruction has already been transitioned
to only rely on information provided by VPWidenMemoryInstructionRecipe
directly.

Moving the code directly to VPWidenMemoryInstructionRecipe::execute
completes the transition for the recipe.

It provides the following advantages:

1. Less indirection, easier to see what's going on.
2. Removes accesses to fields of ILV.

2. in particular ensures that no dependencies on

fields in ILV for vector code generation are re-introduced.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114324

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114324.388726.patch
Type: text/x-patch
Size: 13551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211120/7784858e/attachment.bin>


More information about the llvm-commits mailing list