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

Anshil Gandhi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 11:19:35 PDT 2022


gandhi21299 created this revision.
gandhi21299 added reviewers: arsenm, 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.

Prior to inserting an unconditional branch from X to its
fall through basic block, check if X has any terminators to
avoid inserting additional branches.

Change-Id: Ie3a0c60d92928d96ab80d6bfe265794059e7e2db


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134557

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

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


More information about the llvm-commits mailing list