[llvm] a28d38a - [SimplifyCFG] Make test more robust (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 28 11:51:29 PDT 2020
Author: Nikita Popov
Date: 2020-06-28T20:51:03+02:00
New Revision: a28d38a6bca1726d56c9b373f4c7dc5264fc7716
URL: https://github.com/llvm/llvm-project/commit/a28d38a6bca1726d56c9b373f4c7dc5264fc7716
DIFF: https://github.com/llvm/llvm-project/commit/a28d38a6bca1726d56c9b373f4c7dc5264fc7716.diff
LOG: [SimplifyCFG] Make test more robust (NFC)
Avoid changing this test if blocks get merged.
Added:
Modified:
llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll b/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
index 7f713182fde7..2ce04ec85060 100644
--- a/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
+++ b/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
@@ -91,7 +91,7 @@ define void @test3(i2 %a) {
; CHECK-NEXT: call void @foo(i32 2)
; CHECK-NEXT: ret void
; CHECK: default:
-; CHECK-NEXT: call void @foo(i32 0)
+; CHECK-NEXT: call void @foo(i32 3)
; CHECK-NEXT: ret void
;
switch i2 %a, label %default [i2 0, label %case0
@@ -108,7 +108,7 @@ case2:
call void @foo(i32 2)
ret void
default:
- call void @foo(i32 0)
+ call void @foo(i32 3)
ret void
}
@@ -127,7 +127,7 @@ define void @test4(i128 %a) {
; CHECK-NEXT: call void @foo(i32 1)
; CHECK-NEXT: ret void
; CHECK: default:
-; CHECK-NEXT: call void @foo(i32 0)
+; CHECK-NEXT: call void @foo(i32 2)
; CHECK-NEXT: ret void
;
switch i128 %a, label %default [i128 0, label %case0
@@ -140,7 +140,7 @@ case1:
call void @foo(i32 1)
ret void
default:
- call void @foo(i32 0)
+ call void @foo(i32 2)
ret void
}
More information about the llvm-commits
mailing list