[PATCH] D60859: [SimplifyCFG] remove bogus test case; NFC
Shawn Landden via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 07:17:56 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362499: [SimplifyCFG] NFC; remove bogus test case (authored by shawnl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60859?vs=195699&id=202935#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60859/new/
https://reviews.llvm.org/D60859
Files:
llvm/trunk/test/Transforms/SimplifyCFG/switch-dead-default.ll
Index: llvm/trunk/test/Transforms/SimplifyCFG/switch-dead-default.ll
===================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/switch-dead-default.ll
+++ llvm/trunk/test/Transforms/SimplifyCFG/switch-dead-default.ll
@@ -151,29 +151,3 @@
call void @foo(i32 2)
ret void
}
-
-;; All but one bit known undef
-;; Note: This is currently testing an optimization which doesn't trigger. The
-;; case this is protecting against is that a bit could be assumed both zero
-;; *or* one given we know it's undef. ValueTracking doesn't do this today,
-;; but it doesn't hurt to confirm.
-define void @test8(i8 %a) {
-; CHECK-LABEL: @test8(
-; CHECK: switch i8
- %and = and i8 %a, 254
- %cmp = icmp eq i8 %and, undef
- call void @llvm.assume(i1 %cmp)
- switch i8 %a, label %default [i8 255, label %true
- i8 254, label %false]
-true:
- call void @foo(i32 1)
- ret void
-false:
- call void @foo(i32 3)
- ret void
-default:
- call void @foo(i32 2)
- ret void
-}
-
-declare void @llvm.assume(i1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60859.202935.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190604/6bbddaf6/attachment.bin>
More information about the llvm-commits
mailing list