[PATCH] D148514: [BranchFolding] Remove redundant conditional branch.
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 17 04:59:21 PDT 2023
skatkov created this revision.
skatkov added reviewers: goldstein.w.n, craig.topper, sunfish, dantrushin, danilaml.
Herald added subscribers: kosarev, kerbowa, pengfei, kbarton, hiraditya, jvesely, nemanjai, qcolombet.
Herald added a project: All.
skatkov requested review of this revision.
Herald added a project: LLVM.
BB1: Conditional jump outside
Fallthrough or explicit branch to BB2
BB2: The same conditional branch leading to somewhere else outside
Fallthrough or explicit branch to BB3
can be transformed to
BB1: Conditional jump outside
Fallthrough or explicit branch to BB2
BB2: Fallthrough or explicit branch to BB3
https://reviews.llvm.org/D148514
Files:
llvm/lib/CodeGen/BranchFolding.cpp
llvm/test/CodeGen/AMDGPU/swdev373493.ll
llvm/test/CodeGen/Hexagon/newvaluejump-kill.ll
llvm/test/CodeGen/PowerPC/aantidep-inline-asm-use.ll
llvm/test/CodeGen/PowerPC/bdzlr.ll
llvm/test/CodeGen/PowerPC/ifcvt-forked-bug-2016-08-08.ll
llvm/test/CodeGen/PowerPC/p10-spill-crlt.ll
llvm/test/CodeGen/PowerPC/p10-spill-crun.ll
llvm/test/CodeGen/PowerPC/ppc-shrink-wrapping.ll
llvm/test/CodeGen/PowerPC/pr45448.ll
llvm/test/CodeGen/PowerPC/pr49509.ll
llvm/test/CodeGen/Thumb/consthoist-few-dependents.ll
llvm/test/CodeGen/Thumb2/thumb2-cbnz.ll
llvm/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
llvm/test/CodeGen/X86/2008-04-17-CoalescerBug.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148514.514162.patch
Type: text/x-patch
Size: 37272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230417/5b0e59c1/attachment.bin>
More information about the llvm-commits
mailing list