[PATCH] D140790: [BranchRelaxation] Prevent analyzing indirectBr during uncondBr fixup

Anshil Gandhi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 15:22:27 PST 2023


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

- Use `getFallThrough()` instead of checking for indirect branches.
- Revert changes from D134557 <https://reviews.llvm.org/D134557> and use an updated `getFallThrough(..)` where a param is set to true/false for explicit branching to fallthrough basic block. Allow explicit branching to fallthrough by default.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140790

Files:
  llvm/include/llvm/CodeGen/MachineBasicBlock.h
  llvm/lib/CodeGen/BranchRelaxation.cpp
  llvm/lib/CodeGen/MachineBasicBlock.cpp
  llvm/test/CodeGen/AMDGPU/branch-relax-indirect-branch.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140790.486407.patch
Type: text/x-patch
Size: 26008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230104/051d3621/attachment.bin>


More information about the llvm-commits mailing list