[clang] [llvm] [LLVM][IRBuilder] Use NUW arithmetic for Create{ElementCount,TypeSize}. (PR #143532)
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 18 14:50:34 PDT 2025
================
@@ -177,16 +177,16 @@ define void @add_unique_ind32(ptr noalias nocapture %a, i64 %n) {
; CHECK-LABEL: @add_unique_ind32(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[TMP0:%.*]] = call i64 @llvm.vscale.i64()
-; CHECK-NEXT: [[TMP1:%.*]] = shl i64 [[TMP0]], 2
+; CHECK-NEXT: [[TMP1:%.*]] = shl nuw i64 [[TMP0]], 2
----------------
fhahn wrote:
Ok great, this doesn't need to wait for the clarification in LangRef to land, as long as it gets addressed soon.
https://github.com/llvm/llvm-project/pull/143532
More information about the cfe-commits
mailing list