[llvm] [LAA] Only use inbounds/nusw in isNoWrap if the GEP is dereferenced. (PR #161445)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 19:56:31 PDT 2025


================
@@ -17,18 +17,33 @@ define void @foo4(ptr nocapture %A, ptr nocapture readonly %B, ptr nocapture rea
 ; RV32-LABEL: @foo4(
 ; RV32-NEXT:  entry:
 ; RV32-NEXT:    br label [[VECTOR_MEMCHECK:%.*]]
+; RV32:       vector.scevcheck:
+; RV32-NEXT:    [[MUL:%.*]] = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 128, i32 624)
----------------
fhahn wrote:

Probably something that can be handled by https://github.com/llvm/llvm-project/pull/157351/ (or an extension thereof)

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


More information about the llvm-commits mailing list