[PATCH] D126525: [SSAUpdaterImpl] Do not generate phi node with all the same incoming values

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 01:52:19 PDT 2022


skatkov created this revision.
skatkov added reviewers: reames, dantrushin, asbirlea, djtodoro, StephenTozer, foad, sameerds.
Herald added subscribers: kosarev, pmatos, asb, kerbowa, jgravelle-google, sbc100, jvesely, dschuff.
Herald added a project: All.
skatkov requested review of this revision.
Herald added a subscriber: aheejin.
Herald added a project: LLVM.

If all available vals to basic block are the same - do not build new phi node and
just use this val.


https://reviews.llvm.org/D126525

Files:
  llvm/include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  llvm/test/CodeGen/AArch64/tail-dup-redundant-phi.mir
  llvm/test/CodeGen/AMDGPU/nested-loop-conditions.ll
  llvm/test/CodeGen/WebAssembly/lower-em-ehsjlj.ll
  llvm/test/Transforms/LICM/sink-debuginfo-preserve.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126525.432492.patch
Type: text/x-patch
Size: 7126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220527/10a83be4/attachment.bin>


More information about the llvm-commits mailing list