[llvm] [AArch64] ConditionOptimizer: replace intra-block scan with map-based algorithm (PR #190455)
Victor Campos via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 03:00:14 PDT 2026
================
@@ -524,85 +549,65 @@ bool AArch64ConditionOptimizerImpl::tryOptimizePair(CmpCondPair &First,
// Into:
// cmp w8, #10
// csinc w9, w0, w1, gt ; w9 = (w8 > 10) ? w0 : w1+1
+// cmp w8, #10 ; <- CSE can remove the redunant cmp
----------------
vhscampos wrote:
Typo: "redunant"
https://github.com/llvm/llvm-project/pull/190455
More information about the llvm-commits
mailing list