llvm.org GIT mirror llvm / 9b78b26
[WebAssembly] Update cfg-stackify.ll to remove the workaround added in r318288. Remove -switch-peel-threshold=100 and update the expected results in test10 in cfg-stackify.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318338 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 2 years ago
1 changed file(s) with 21 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -switch-peel-threshold=100 | FileCheck %s
1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -tail-dup-placement=0 -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 -switch-peel-threshold=100 | FileCheck -check-prefix=OPT %s
0 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -disable-block-placement -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 | FileCheck %s
1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -tail-dup-placement=0 -verify-machineinstrs -fast-isel=false -machine-sink-split-probability-threshold=0 -cgp-freq-ratio-to-skip-merge=1000 | FileCheck -check-prefix=OPT %s
22
33 ; Test the CFG stackifier pass.
44
891891 ; CHECK: .LBB19_4:
892892 ; CHECK-NEXT: loop {{$}}
893893 ; CHECK-NOT: block
894 ; CHECK: br_if 3, {{[^,]+}}{{$}}
895 ; CHECK: block {{$}}
896 ; CHECK: br_table {{[^,]+}}, 1, 0, 4, 2, 3, 1{{$}}
897 ; CHECK-NEXT: .LBB19_6:
898 ; CHECK-NEXT: end_block{{$}}
894 ; CHECK: br_if 0, {{[^,]+}}{{$}}
899895 ; CHECK-NEXT: end_loop{{$}}
896 ; CHECK: br_if 1, {{[^,]+}}{{$}}
897 ; CHECK-NOT: block
898 ; CHECK: br_if 0, {{[^,]+}}{{$}}
900899 ; CHECK-NEXT: end_loop{{$}}
900 ; CHECK-NOT: block
901 ; CHECK: br_if 1, {{[^,]+}}{{$}}
901902 ; CHECK-NEXT: return{{$}}
902 ; CHECK-NEXT: .LBB19_7:
903 ; CHECK-NEXT: .LBB19_9:
903904 ; CHECK-NEXT: end_block{{$}}
904905 ; CHECK-NOT: block
905906 ; CHECK: br 0{{$}}
906 ; CHECK-NEXT: .LBB19_8:
907 ; CHECK-NEXT: .LBB19_10:
907908 ; OPT-LABEL: test10:
908909 ; OPT: .LBB19_1:
909910 ; OPT-NEXT: loop {{$}}
916917 ; OPT: .LBB19_4:
917918 ; OPT-NEXT: loop {{$}}
918919 ; OPT-NOT: block
919 ; OPT: br_if 3, {{[^,]+}}{{$}}
920 ; OPT: block
921 ; OPT: br_table {{[^,]+}}, 1, 0, 4, 2, 3, 1{{$}}
922 ; OPT-NEXT: .LBB19_6:
920 ; OPT: br_if 0, {{[^,]+}}{{$}}
921 ; OPT-NEXT: end_loop{{$}}
922 ; OPT: br_if 1, {{[^,]+}}{{$}}
923 ; OPT-NOT: block
924 ; OPT: br_if 0, {{[^,]+}}{{$}}
925 ; OPT-NEXT: end_loop{{$}}
926 ; OPT-NOT: block
927 ; OPT: br_if 1, {{[^,]+}}{{$}}
928 ; OPT-NEXT: return{{$}}
929 ; OPT-NEXT: .LBB19_9:
923930 ; OPT-NEXT: end_block{{$}}
924 ; OPT-NEXT: end_loop{{$}}
925 ; OPT-NEXT: end_loop{{$}}
926 ; OPT-NEXT: return{{$}}
927 ; OPT-NEXT: .LBB19_7:
928 ; OPT-NEXT: end_block{{$}}
929931 ; OPT-NOT: block
930932 ; OPT: br 0{{$}}
931 ; OPT-NEXT: .LBB19_8:
933 ; OPT-NEXT: .LBB19_10:
932934 define void @test10() {
933935 bb0:
934936 br label %bb1