[PATCH] D134557: [BranchRelaxation] Fall through only if block has no unconditional branches

Anshil Gandhi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 14:51:37 PDT 2022


gandhi21299 updated this revision to Diff 466194.
gandhi21299 added a comment.

- Use Cond.empty() to distinguish between the case of uncondBr vs condBr + fallthrough


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134557

Files:
  llvm/lib/CodeGen/BranchRelaxation.cpp
  llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134557.466194.patch
Type: text/x-patch
Size: 103686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221007/6d9daa79/attachment.bin>


More information about the llvm-commits mailing list