[PATCH] D123669: [ArgPromotion] Use SmallVector to traverse values

Pavel Samolysov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 06:21:53 PDT 2022


psamolysov updated this revision to Diff 423883.
psamolysov retitled this revision from "[ArgPromotion] Use SmallSetVector to traverse values" to "[ArgPromotion] Use SmallVector to traverse values".
psamolysov edited the summary of this revision.
psamolysov added a comment.

The patch summary and the diff have been updated, the idea is just use a `SmallVector` instance for `load` instruction search because the def-use sub-graph where users are only `GET`, `bitcast` and `load` instructions looks like a tree not even a DAG.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123669/new/

https://reviews.llvm.org/D123669

Files:
  llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
  llvm/test/Transforms/ArgumentPromotion/diamond-graph-no-promotion.ll
  llvm/test/Transforms/ArgumentPromotion/phi-loop-no-arg-promotion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123669.423883.patch
Type: text/x-patch
Size: 4028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220420/a345bc32/attachment.bin>


More information about the llvm-commits mailing list