[llvm] 1b0c975 - Use named values in tests. (#182102)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 06:48:59 PST 2026
Author: Marcos Maronas
Date: 2026-02-19T14:48:54Z
New Revision: 1b0c9757eab134fcbf26bf84631010367ca70b07
URL: https://github.com/llvm/llvm-project/commit/1b0c9757eab134fcbf26bf84631010367ca70b07
DIFF: https://github.com/llvm/llvm-project/commit/1b0c9757eab134fcbf26bf84631010367ca70b07.diff
LOG: Use named values in tests. (#182102)
Address
https://github.com/llvm/llvm-project/pull/181695#discussion_r2821774068.
Added:
Modified:
llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll b/llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
index 5b12fd3ec545f..6c3289aeaf7ff 100644
--- a/llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
+++ b/llvm/test/Transforms/InstSimplify/ConstProp/vector-type-constant-folding.ll
@@ -15,11 +15,11 @@ define void @test() {
; CHECK-NEXT: store <4 x i16> <i16 sub (i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 0), i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 0)), i16 sub (i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 1), i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 1)), i16 sub (i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 2), i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 2)), i16 sub (i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 3), i16 extractelement (<4 x i16> bitcast (i64 ptrtoint (ptr @f to i64) to <4 x i16>), i32 3))>, ptr @f, align 8
; CHECK-NEXT: ret void
;
- %1 = ptrtoint ptr @f to i64
- %2 = bitcast i64 %1 to <4 x i16>
- %3 = ptrtoint ptr @f to i64
- %4 = bitcast i64 %3 to <4 x i16>
- %sub = sub <4 x i16> %2, %4
+ %a_i64 = ptrtoint ptr @f to i64
+ %a_vec4 = bitcast i64 %a_i64 to <4 x i16>
+ %b_i64 = ptrtoint ptr @f to i64
+ %b_vec4 = bitcast i64 %b_i64 to <4 x i16>
+ %sub = sub <4 x i16> %a_vec4, %b_vec4
store <4 x i16> %sub, ptr @f, align 8
ret void
}
More information about the llvm-commits
mailing list