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

Anshil Gandhi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 30 15:20:36 PST 2022


gandhi21299 created this revision.
gandhi21299 added reviewers: arsenm, efriedma, bcahoon, hliao.
Herald added subscribers: kosarev, kerbowa, hiraditya, jvesely.
Herald added a project: All.
gandhi21299 requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Indirect branches are unanalyzable and they should not be
followed by a branch instruction. This patch checks for an indirect branch
before inserting jumps.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140790

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140790.485728.patch
Type: text/x-patch
Size: 23139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221230/e2fe7f70/attachment.bin>


More information about the llvm-commits mailing list