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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 12:05:27 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) {
----------------
topperc wrote:

Drop `dso_local`. Add `nowunwind` so the cfi directives will go away.

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


More information about the llvm-commits mailing list