[llvm] 0c2630b - [InstCombine] Drop incorrect test (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 06:56:34 PST 2023


Author: Nikita Popov
Date: 2023-01-19T15:56:23+01:00
New Revision: 0c2630be22610b4bc79305f73759ac5334ded540

URL: https://github.com/llvm/llvm-project/commit/0c2630be22610b4bc79305f73759ac5334ded540
DIFF: https://github.com/llvm/llvm-project/commit/0c2630be22610b4bc79305f73759ac5334ded540.diff

LOG: [InstCombine] Drop incorrect test (NFC)

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).

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/freeze.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/freeze.ll b/llvm/test/Transforms/InstCombine/freeze.ll
index 5e87dd7c7a32..21a89d873b92 100644
--- a/llvm/test/Transforms/InstCombine/freeze.ll
+++ b/llvm/test/Transforms/InstCombine/freeze.ll
@@ -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}


        


More information about the llvm-commits mailing list