diff options
author | Kyle Butt <kyle+llvm@iteratee.net> | 2017-03-16 21:33:29 +0000 |
---|---|---|
committer | Kyle Butt <kyle+llvm@iteratee.net> | 2017-03-16 21:33:29 +0000 |
commit | a19db56878d90a085810b397a29fa601e274635d (patch) | |
tree | d1476936394b6d509c58628c42b8107aa53a69a0 /test/CodeGen/PowerPC/tail-dup-layout.ll | |
parent | 6f00c7bc4d3e17654a0692e8bbad5fd6b1cc3d17 (diff) |
CodeGen: BlockPlacement: Adjust test case so it covers rL297925. NFC
I had ajusted the test case before when testing a chain of length 2, and then
reverted it with rL296845 when I switched to 3 triangles. After running
benchmarks and examining generated code at length 2 I forgot to put the test
back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/tail-dup-layout.ll')
-rw-r--r-- | test/CodeGen/PowerPC/tail-dup-layout.ll | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/test/CodeGen/PowerPC/tail-dup-layout.ll b/test/CodeGen/PowerPC/tail-dup-layout.ll index e0979d89473..12fce24392a 100644 --- a/test/CodeGen/PowerPC/tail-dup-layout.ll +++ b/test/CodeGen/PowerPC/tail-dup-layout.ll @@ -123,9 +123,6 @@ exit: ;CHECK-NEXT: .[[TEST3LABEL:[_0-9A-Za-z]+]]: # %test3 ;CHECK-NEXT: rlwinm. {{[0-9]+}}, [[TAGREG]], 0, 29, 29 ;CHECK-NEXT: bne 0, .[[OPT3LABEL:[_0-9A-Za-z]+]] -;CHECK-NEXT: .[[TEST4LABEL:[_0-9A-Za-z]+]]: # %test4 -;CHECK-NEXT: rlwinm. {{[0-9]+}}, [[TAGREG]], 0, 28, 28 -;CHECK-NEXT: bne 0, .[[OPT4LABEL:[_0-9A-Za-z]+]] ;CHECK-NEXT: .[[EXITLABEL:[_0-9A-Za-z]+]]: # %exit ;CHECK: blr ;CHECK-NEXT: .[[OPT1LABEL]]: @@ -133,11 +130,8 @@ exit: ;CHECK-NEXT: beq 0, .[[TEST3LABEL]] ;CHECK-NEXT: .[[OPT2LABEL]]: ;CHECK: rlwinm. {{[0-9]+}}, [[TAGREG]], 0, 29, 29 -;CHECK-NEXT: beq 0, .[[TEST4LABEL]] -;CHECK-NEXT: .[[OPT3LABEL]]: -;CHECK: rlwinm. {{[0-9]+}}, [[TAGREG]], 0, 28, 28 ;CHECK-NEXT: beq 0, .[[EXITLABEL]] -;CHECK-NEXT: .[[OPT4LABEL]]: +;CHECK-NEXT: .[[OPT3LABEL]]: ;CHECK: b .[[EXITLABEL]] define void @straight_test_50(i32 %tag) { @@ -160,16 +154,9 @@ optional2: test3: %tagbit3 = and i32 %tag, 4 %tagbit3eq0 = icmp eq i32 %tagbit3, 0 - br i1 %tagbit3eq0, label %test4, label %optional3, !prof !2 + br i1 %tagbit3eq0, label %exit, label %optional3, !prof !1 optional3: call void @c() - br label %test4 -test4: - %tagbit4 = and i32 %tag, 8 - %tagbit4eq0 = icmp eq i32 %tagbit4, 0 - br i1 %tagbit4eq0, label %exit, label %optional4, !prof !1 -optional4: - call void @d() br label %exit exit: ret void |