[llvm] [DirectX] Bug fix for Data Scalarization crash (PR #118426)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 12:26:35 PST 2024


================
@@ -87,7 +81,7 @@ define <4 x i32> @load_vec_test() #0 {
 define <4 x i32> @load_static_array_of_vec_test(i32 %index) #0 {
 ; CHECK-LABEL: define <4 x i32> @load_static_array_of_vec_test(
 ; CHECK-SAME: i32 [[INDEX:%.*]]) #[[ATTR0]] {
-; CHECK-NEXT:    [[DOTFLAT:%.*]] = getelementptr [12 x i32], ptr @staticArrayOfVecData.scalarized.1dim, i32 [[INDEX]]
+; CHECK-NEXT:    [[DOTFLAT:%.*]] = getelementptr inbounds [12 x i32], ptr @staticArrayOfVecData.scalarized.1dim, i32 [[INDEX]]
----------------
farzonl wrote:

our GEP builders were not preserving inbounds. Now we are.

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


More information about the llvm-commits mailing list