From 70c401f85f13dd0cca76aed7b92421ae667ed6c3 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Wed, 11 Mar 2026 07:47:40 -0700 Subject: [PATCH] Updates the llvm-raw commit to HEAD as of 2026-03-09 (#6879) Test changes are the result of autoupdate_testdata.py Assisted-by: Google Antigravity with Gemini --- MODULE.bazel | 4 ++-- .../driver/testdata/compile/optimize/optimize_debug.carbon | 2 +- .../driver/testdata/compile/optimize/optimize_default.carbon | 2 +- .../driver/testdata/compile/optimize/optimize_speed.carbon | 4 ++-- .../interop/cpp/clang_code_generator_callbacks.carbon | 4 +--- toolchain/lower/testdata/interop/cpp/virtual_base.carbon | 4 ++-- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index f2fd9861e2a9..38b5a08405b5 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -84,8 +84,8 @@ git_override( build_file_content = "# empty", # We pin to specific upstream commits and try to track top-of-tree # reasonably closely rather than pinning to a specific release. - # HEAD as of 2026-02-12. - commit = "6811a83c81500ee373adfc0d9978ff9625a4cf1c", + # HEAD as of 2026-03-09. + commit = "d8474abfc1e7c3856b85b088f1133ae2e90da3d0", patch_cmds = ["echo \"module(name='llvm-raw')\" > MODULE.bazel"], patch_strip = 1, patches = [ diff --git a/toolchain/driver/testdata/compile/optimize/optimize_debug.carbon b/toolchain/driver/testdata/compile/optimize/optimize_debug.carbon index f2b2a32df967..2419043aa9da 100644 --- a/toolchain/driver/testdata/compile/optimize/optimize_debug.carbon +++ b/toolchain/driver/testdata/compile/optimize/optimize_debug.carbon @@ -66,7 +66,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) { // CHECK:STDOUT: while.body: ; preds = %entry, %while.body // CHECK:STDOUT: %n.var.03 = phi i32 [ 0, %entry ], [ %1, %while.body ] // CHECK:STDOUT: %0 = zext nneg i32 %n.var.03 to i64, !dbg !23 -// CHECK:STDOUT: %.loc19_11.array.index = getelementptr inbounds nuw i32, ptr %a, i64 %0, !dbg !23 +// CHECK:STDOUT: %.loc19_11.array.index = getelementptr inbounds nuw [4 x i8], ptr %a, i64 %0, !dbg !23 // CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call = load i32, ptr %.loc19_11.array.index, align 4, !dbg !23 // CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call1 = shl i32 %Int.as.MulAssignWith.impl.Op.call, 1, !dbg !23 // CHECK:STDOUT: store i32 %Int.as.MulAssignWith.impl.Op.call1, ptr %.loc19_11.array.index, align 4, !dbg !23 diff --git a/toolchain/driver/testdata/compile/optimize/optimize_default.carbon b/toolchain/driver/testdata/compile/optimize/optimize_default.carbon index 4427394502e4..16e4cd9b7a4f 100644 --- a/toolchain/driver/testdata/compile/optimize/optimize_default.carbon +++ b/toolchain/driver/testdata/compile/optimize/optimize_default.carbon @@ -66,7 +66,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) { // CHECK:STDOUT: while.body: ; preds = %entry, %while.body // CHECK:STDOUT: %n.var.03 = phi i32 [ 0, %entry ], [ %1, %while.body ] // CHECK:STDOUT: %0 = zext nneg i32 %n.var.03 to i64, !dbg !23 -// CHECK:STDOUT: %.loc19_11.array.index = getelementptr inbounds nuw i32, ptr %a, i64 %0, !dbg !23 +// CHECK:STDOUT: %.loc19_11.array.index = getelementptr inbounds nuw [4 x i8], ptr %a, i64 %0, !dbg !23 // CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call = load i32, ptr %.loc19_11.array.index, align 4, !dbg !23 // CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call1 = shl i32 %Int.as.MulAssignWith.impl.Op.call, 1, !dbg !23 // CHECK:STDOUT: store i32 %Int.as.MulAssignWith.impl.Op.call1, ptr %.loc19_11.array.index, align 4, !dbg !23 diff --git a/toolchain/driver/testdata/compile/optimize/optimize_speed.carbon b/toolchain/driver/testdata/compile/optimize/optimize_speed.carbon index 604a350c172e..9a40c6323bdf 100644 --- a/toolchain/driver/testdata/compile/optimize/optimize_speed.carbon +++ b/toolchain/driver/testdata/compile/optimize/optimize_speed.carbon @@ -66,7 +66,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) { // CHECK:STDOUT: vector.body: ; preds = %vector.body, %entry // CHECK:STDOUT: %index = phi i32 [ 0, %entry ], [ %index.next.1, %vector.body ], !dbg !23 // CHECK:STDOUT: %0 = zext nneg i32 %index to i64, !dbg !38 -// CHECK:STDOUT: %1 = getelementptr inbounds nuw i32, ptr %a, i64 %0, !dbg !38 +// CHECK:STDOUT: %1 = getelementptr inbounds nuw [4 x i8], ptr %a, i64 %0, !dbg !38 // CHECK:STDOUT: %2 = getelementptr inbounds nuw i8, ptr %1, i64 16, !dbg !38 // CHECK:STDOUT: %wide.load = load <4 x i32>, ptr %1, align 4, !dbg !38 // CHECK:STDOUT: %wide.load4 = load <4 x i32>, ptr %2, align 4, !dbg !38 @@ -75,7 +75,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) { // CHECK:STDOUT: store <4 x i32> %3, ptr %1, align 4, !dbg !38 // CHECK:STDOUT: store <4 x i32> %4, ptr %2, align 4, !dbg !38 // CHECK:STDOUT: %5 = zext nneg i32 %index to i64, !dbg !38 -// CHECK:STDOUT: %6 = getelementptr inbounds nuw i32, ptr %a, i64 %5, !dbg !38 +// CHECK:STDOUT: %6 = getelementptr inbounds nuw [4 x i8], ptr %a, i64 %5, !dbg !38 // CHECK:STDOUT: %7 = getelementptr inbounds nuw i8, ptr %6, i64 32, !dbg !38 // CHECK:STDOUT: %8 = getelementptr inbounds nuw i8, ptr %6, i64 48, !dbg !38 // CHECK:STDOUT: %wide.load.1 = load <4 x i32>, ptr %7, align 4, !dbg !38 diff --git a/toolchain/lower/testdata/interop/cpp/clang_code_generator_callbacks.carbon b/toolchain/lower/testdata/interop/cpp/clang_code_generator_callbacks.carbon index c652aeaae71e..7d36544d4820 100644 --- a/toolchain/lower/testdata/interop/cpp/clang_code_generator_callbacks.carbon +++ b/toolchain/lower/testdata/interop/cpp/clang_code_generator_callbacks.carbon @@ -75,8 +75,6 @@ void f2() { // CHECK:STDOUT: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" // CHECK:STDOUT: target triple = "x86_64-unknown-linux-gnu" // CHECK:STDOUT: -// CHECK:STDOUT: %struct.S = type { i32 } -// CHECK:STDOUT: // CHECK:STDOUT: $_ZN2t24funcEv = comdat any // CHECK:STDOUT: // CHECK:STDOUT: $_ZN2t3IiE1iE = comdat any @@ -102,7 +100,7 @@ void f2() { // CHECK:STDOUT: ; Function Attrs: mustprogress nounwind uwtable // CHECK:STDOUT: define dso_local noundef i32 @_Z1fv() #0 { // CHECK:STDOUT: entry: -// CHECK:STDOUT: %0 = load i32, ptr getelementptr inbounds ([10 x %struct.S], ptr @a, i64 0, i64 3), align 4, !tbaa !14 +// CHECK:STDOUT: %0 = load i32, ptr getelementptr inbounds nuw (i8, ptr @a, i64 12), align 4, !tbaa !14 // CHECK:STDOUT: ret i32 %0 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/lower/testdata/interop/cpp/virtual_base.carbon b/toolchain/lower/testdata/interop/cpp/virtual_base.carbon index bc3d159d1694..76455a7a8140 100644 --- a/toolchain/lower/testdata/interop/cpp/virtual_base.carbon +++ b/toolchain/lower/testdata/interop/cpp/virtual_base.carbon @@ -126,9 +126,9 @@ fn AccessD(d: Cpp.D) -> i32 { // CHECK:STDOUT: %this1 = load ptr, ptr %this.addr, align 8 // CHECK:STDOUT: %0 = getelementptr inbounds i8, ptr %this1, i64 32 // CHECK:STDOUT: call void @_ZN1AC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %0) -// CHECK:STDOUT: call void @_ZN1BC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %this1, ptr noundef getelementptr inbounds (ptr, ptr @_ZTT1D, i64 1)) +// CHECK:STDOUT: call void @_ZN1BC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %this1, ptr noundef getelementptr inbounds nuw (i8, ptr @_ZTT1D, i64 8)) // CHECK:STDOUT: %1 = getelementptr inbounds i8, ptr %this1, i64 16 -// CHECK:STDOUT: call void @_ZN1CC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef getelementptr inbounds (ptr, ptr @_ZTT1D, i64 2)) +// CHECK:STDOUT: call void @_ZN1CC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef getelementptr inbounds nuw (i8, ptr @_ZTT1D, i64 16)) // CHECK:STDOUT: store ptr getelementptr inbounds inrange(-24, 0) ({ [3 x ptr], [3 x ptr] }, ptr @_ZTV1D, i32 0, i32 0, i32 3), ptr %this1, align 8, !tbaa !14 // CHECK:STDOUT: %add.ptr = getelementptr inbounds i8, ptr %this1, i64 16 // CHECK:STDOUT: store ptr getelementptr inbounds inrange(-24, 0) ({ [3 x ptr], [3 x ptr] }, ptr @_ZTV1D, i32 0, i32 1, i32 3), ptr %add.ptr, align 8, !tbaa !14