[llvm] 9001edc - [InstCombine] Split up test for store with undef (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 06:41:48 PDT 2022
Author: Nikita Popov
Date: 2022-04-21T15:41:38+02:00
New Revision: 9001edc5355c75becb7b47afb63b867dbeea2737
URL: https://github.com/llvm/llvm-project/commit/9001edc5355c75becb7b47afb63b867dbeea2737
DIFF: https://github.com/llvm/llvm-project/commit/9001edc5355c75becb7b47afb63b867dbeea2737.diff
LOG: [InstCombine] Split up test for store with undef (NFC)
Added:
Modified:
llvm/test/Transforms/InstCombine/store.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/store.ll b/llvm/test/Transforms/InstCombine/store.ll
index 7b30592fbd0e0..8a29049d5b75c 100644
--- a/llvm/test/Transforms/InstCombine/store.ll
+++ b/llvm/test/Transforms/InstCombine/store.ll
@@ -1,14 +1,36 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
-define void @test1(i32* %P) {
-; CHECK-LABEL: @test1(
-; CHECK-NEXT: store i32 123, i32* undef, align 4
-; CHECK-NEXT: store i32 poison, i32* null, align 4294967296
+define void @store_of_undef(i32* %P) {
+; CHECK-LABEL: @store_of_undef(
; CHECK-NEXT: ret void
;
store i32 undef, i32* %P
+ ret void
+}
+
+define void @store_of_poison(i32* %P) {
+; CHECK-LABEL: @store_of_poison(
+; CHECK-NEXT: ret void
+;
+ store i32 poison, i32* %P
+ ret void
+}
+
+define void @store_into_undef(i32* %P) {
+; CHECK-LABEL: @store_into_undef(
+; CHECK-NEXT: store i32 123, i32* undef, align 4
+; CHECK-NEXT: ret void
+;
store i32 123, i32* undef
+ ret void
+}
+
+define void @store_into_null(i32* %P) {
+; CHECK-LABEL: @store_into_null(
+; CHECK-NEXT: store i32 poison, i32* null, align 4294967296
+; CHECK-NEXT: ret void
+;
store i32 124, i32* null
ret void
}
More information about the llvm-commits
mailing list