[PATCH] D128428: [LoongArch] Add codegen support for conditional branches
Ray Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 1 20:53:52 PDT 2022
wangleiat added inline comments.
================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/br.ll:21
+; LA32-NEXT: beq $a2, $a0, .LBB1_2
+; LA32-NEXT: b .LBB1_1
+; LA32-NEXT: .LBB1_1: # %test
----------------
xen0n wrote:
> Why this redundant unconditional jump? Is it because optimization is not enabled or other reason?
We will implement overloading of the public function interface in later patches to eliminate unnecessary branches.
For example: `TargetInstrInfo::analyzeBranch`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128428/new/
https://reviews.llvm.org/D128428
More information about the llvm-commits
mailing list