[PATCH] D75500: StructurizeCFG: simplify phi nodes when possible

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 23:09:28 PST 2020


sameerds created this revision.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, nhaehnle, jvesely.
Herald added a project: LLVM.
sameerds added reviewers: arsenm, nhaehnle, rampitec.
Herald added a subscriber: wdng.

After structurization, some phi nodes can have a single incoming edge
and can be simplified away. This change runs a simplify query on all
phis that are either modified or added by the structurizer. This also
moves some phis closer to their use as a side benefit.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75500

Files:
  llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
  llvm/test/CodeGen/AMDGPU/loop_break.ll
  llvm/test/CodeGen/AMDGPU/nested-loop-conditions.ll
  llvm/test/Transforms/StructurizeCFG/AMDGPU/loop-subregion-misordered.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75500.247795.patch
Type: text/x-patch
Size: 15077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200303/94fc7627/attachment.bin>


More information about the llvm-commits mailing list