[InstCombine] Fix typo in test (NFC)
authorNikita Popov <npopov@redhat.com>
Thu, 21 Apr 2022 13:58:17 +0000 (15:58 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 21 Apr 2022 13:58:51 +0000 (15:58 +0200)
This is a copy paste mistake, this variant of the test was supposed
to use poison instead of undef.

llvm/test/Transforms/InstCombine/memset.ll

index 95048f5..2cc2680 100644 (file)
@@ -53,10 +53,10 @@ define void @memset_undef_volatile(i8* %p) {
 
 define void @memset_poison(i8* %p) {
 ; CHECK-LABEL: @memset_poison(
-; CHECK-NEXT:    call void @llvm.memset.p0i8.i32(i8* noundef nonnull align 1 dereferenceable(8) [[P:%.*]], i8 undef, i32 8, i1 false)
+; CHECK-NEXT:    call void @llvm.memset.p0i8.i32(i8* noundef nonnull align 1 dereferenceable(8) [[P:%.*]], i8 poison, i32 8, i1 false)
 ; CHECK-NEXT:    ret void
 ;
-  call void @llvm.memset.p0i8.i32(i8* %p, i8 undef, i32 8, i1 false)
+  call void @llvm.memset.p0i8.i32(i8* %p, i8 poison, i32 8, i1 false)
   ret void
 }