[InstCombine] Drop incorrect test (NFC)
authorNikita Popov <npopov@redhat.com>
Thu, 19 Jan 2023 14:55:26 +0000 (15:55 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 19 Jan 2023 14:56:23 +0000 (15:56 +0100)
I made a typo here, this was supposed to be !align rather than
!aligned. But then !align can only be applied to loads, not calls
(where one would use the return attribute instead). And freeze
can't be pushed through loads anyway, so there's no way to test
this case (same as !nonnull).

llvm/test/Transforms/InstCombine/freeze.ll

index 5e87dd7..21a89d8 100644 (file)
@@ -1115,19 +1115,6 @@ define i32 @freeze_ctpop(i32 %x) {
   ret i32 %fr
 }
 
-declare ptr @llvm.ptrmask.p0.i64(ptr, i64)
-
-define ptr @freeze_ptrmask_align(ptr %p, i64 noundef %m) {
-; CHECK-LABEL: @freeze_ptrmask_align(
-; CHECK-NEXT:    [[P_FR:%.*]] = freeze ptr [[P:%.*]]
-; CHECK-NEXT:    [[MASK:%.*]] = call ptr @llvm.ptrmask.p0.i64(ptr [[P_FR]], i64 [[M:%.*]]), !aligned !1
-; CHECK-NEXT:    ret ptr [[MASK]]
-;
-  %mask = call ptr @llvm.ptrmask.p0.i64(ptr %p, i64 %m), !aligned !{i64 4}
-  %fr =  freeze ptr %mask
-  ret ptr %fr
-}
-
 !0 = !{}
 !1 = !{i64 4}
 !2 = !{i32 0, i32 100}