[PATCH] D62198: StructurizeCFG: Relax uniformity checks.

Neil Henning via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 07:37:54 PDT 2019


sheredom created this revision.
sheredom added a reviewer: nhaehnle.
Herald added subscribers: llvm-commits, jvesely.
Herald added a project: LLVM.

This change relaxes the checks for hasOnlyUniformBranches such that our region is uniform if:

1. All conditional branches that are direct children are uniform.
2. And either: a. All sub-regions are uniform. b. There is one or less conditional branches among the direct children.


Repository:
  rL LLVM

https://reviews.llvm.org/D62198

Files:
  lib/Transforms/Scalar/StructurizeCFG.cpp
  test/CodeGen/AMDGPU/control-flow-optnone.ll
  test/Transforms/StructurizeCFG/AMDGPU/uniform-regions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62198.200508.patch
Type: text/x-patch
Size: 6899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190521/b9be40e2/attachment.bin>


More information about the llvm-commits mailing list