[llvm] 07a8a5e - [SLP][NFC] Avoid undef usage in odd_store.ll (#206333)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 28 09:44:17 PDT 2026


Author: Harrison Hao
Date: 2026-06-29T00:44:13+08:00
New Revision: 07a8a5e4da7ac42fe492dc8016cddea2c93ffa2b

URL: https://github.com/llvm/llvm-project/commit/07a8a5e4da7ac42fe492dc8016cddea2c93ffa2b
DIFF: https://github.com/llvm/llvm-project/commit/07a8a5e4da7ac42fe492dc8016cddea2c93ffa2b.diff

LOG: [SLP][NFC] Avoid undef usage in odd_store.ll (#206333)

Replace `ret i32 undef` with void return type to avoid CI undef
deprecator failures.

For this PR: https://github.com/llvm/llvm-project/pull/206259

Added: 
    

Modified: 
    llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll b/llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll
index cef62c6cae3d5..8af013b65db1b 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll
@@ -8,7 +8,7 @@
 ;  A[2] = (T * B[12] + 6.0);
 ;}
 
-define i32 @foo(ptr noalias nocapture %A, ptr noalias nocapture %B, float %T) {
+define void @foo(ptr noalias nocapture %A, ptr noalias nocapture %B, float %T) {
 ; CHECK-LABEL: @foo(
 ; CHECK-NEXT:    [[TMP1:%.*]] = getelementptr inbounds float, ptr [[B:%.*]], i64 10
 ; CHECK-NEXT:    [[TMP2:%.*]] = load float, ptr [[TMP1]], align 4
@@ -31,7 +31,7 @@ define i32 @foo(ptr noalias nocapture %A, ptr noalias nocapture %B, float %T) {
 ; CHECK-NEXT:    [[TMP20:%.*]] = getelementptr inbounds i8, ptr [[A]], i64 2
 ; CHECK-NEXT:    [[TMP19:%.*]] = extractelement <2 x i8> [[TMP15]], i32 1
 ; CHECK-NEXT:    store i8 [[TMP19]], ptr [[TMP20]], align 1
-; CHECK-NEXT:    ret i32 undef
+; CHECK-NEXT:    ret void
 ;
   %1 = getelementptr inbounds float, ptr %B, i64 10
   %2 = load float, ptr %1, align 4
@@ -56,7 +56,7 @@ define i32 @foo(ptr noalias nocapture %A, ptr noalias nocapture %B, float %T) {
   %19 = fptosi double %18 to i8
   %20 = getelementptr inbounds i8, ptr %A, i64 2
   store i8 %19, ptr %20, align 1
-  ret i32 undef
+  ret void
 }
 
 ; PR41892


        


More information about the llvm-commits mailing list