[all-commits] [llvm/llvm-project] d383ad: [BranchRelaxation] Fall through only if block has ...
Anshil Gandhi via All-commits
all-commits at lists.llvm.org
Thu Oct 13 21:49:09 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d383adec4d3914492e67267462e6f00fdd4934af
https://github.com/llvm/llvm-project/commit/d383adec4d3914492e67267462e6f00fdd4934af
Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
Date: 2022-10-13 (Thu, 13 Oct 2022)
Changed paths:
M llvm/lib/CodeGen/BranchRelaxation.cpp
A llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
Log Message:
-----------
[BranchRelaxation] Fall through only if block has no unconditional branches
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.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D134557
More information about the All-commits
mailing list