[llvm] [RISCV] A test demonstrating missed opportunity to combine `addi` into (PR #67022)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 13:19:41 PDT 2023


================
@@ -733,3 +733,270 @@ entry:
   %0 = load i32, ptr inttoptr (i64 2147481600 to ptr)
   ret i32 %0
 }
+
+%struct.S = type { i64, i64 }
+
+define dso_local i64 @fold_addi_from_different_bb(i64 %k, i64 %n, ptr %a) {
----------------
mgudim wrote:

Done.

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


More information about the llvm-commits mailing list