[clang] [CIR] Add inbounds and nuw flags to cir.ptr_stride (PR #249016)
Konstantinos Parasyris via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 15:20:29 PST 2026
================
@@ -15,15 +15,15 @@ int va_int(__builtin_va_list args) {
// LLVM-LABEL: define {{.*}} i32 @va_int(
// LLVM: getelementptr inbounds nuw %struct.__va_list, ptr %{{.*}}, i32 0, i32 3
// LLVM: %[[GR_TOP:.*]] = load ptr, ptr %{{.*}}, align 8
-// LLVMCIR: %[[SLOT:.*]] = getelementptr i8, ptr %[[GR_TOP]], i64 %{{.*}}
-// LLVMCIR: %[[REG_ADDR:.*]] = getelementptr i8, ptr %[[SLOT]], i64 4
+// LLVMCIR: %[[SLOT:.*]] = getelementptr inbounds i8, ptr %[[GR_TOP]], i64 %{{.*}}
----------------
koparasy wrote:
Did the i32|i64 and it unblocks quite some tests. Thnx
https://github.com/llvm/llvm-project/pull/249016
More information about the cfe-commits
mailing list