[clang-tools-extra] [llvm] [RISCV][Zba] Optimize mul with SH*ADD (PR #68144)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 24 08:46:59 PST 2023


================
@@ -983,6 +983,1299 @@ define i64 @mul81(i64 %a) {
   ret i64 %c
 }
 
+
+define i64 @mul153(i64 %a) {
+; RV64I-LABEL: mul153:
----------------
topperc wrote:

llvm-mca doesn't think this is an improvement for sifive-x280 https://godbolt.org/z/6ahP11xrq

https://github.com/llvm/llvm-project/pull/68144


More information about the cfe-commits mailing list