llvm-project
e2a55b86 - [LoongArch] Add custom lowering for BCOND and perform BR_CC combine (#147885)

Commit
182 days ago
[LoongArch] Add custom lowering for BCOND and perform BR_CC combine (#147885) This patch attempts to optimize conditional branches by combinding logical operations within the conditions. This enables the selection of more efficient branch instructions. For example, for integers, `blez x` can be used instead of `blt x, (ori, t, 1)`; for floating-point comparisons, dedicated floating-point branch instructions can be used to avoid moving the result to an integer register.
Author
Parents
Loading