[llvm] [LSR][RISCV] Add cmp/branch support (PR #178039)
Michael Berg via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 17:50:16 PST 2026
================
@@ -481,6 +477,8 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
llvm_unreachable("unknown register class");
}
+ bool canMacroFuseCmp() const override;
----------------
mcberg2021 wrote:
I'll add an internal action item to look into changing the cost analysis for LSR for the cmp/branch case in our downstream compiler. Closing this PR.
https://github.com/llvm/llvm-project/pull/178039
More information about the llvm-commits
mailing list