diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-11-07 21:35:12 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-11-07 21:35:12 +0000 |
commit | b0319962cfdb18da38ef47da621f148fe144b092 (patch) | |
tree | 7ef69b3a6830545f7264a821fbdec697060668b2 /test/Transforms/SimplifyCFG/switch_create.ll | |
parent | e90a3bcae1cd936aa760cffe5607266279b210d1 (diff) | |
download | external_llvm-b0319962cfdb18da38ef47da621f148fe144b092.tar.gz external_llvm-b0319962cfdb18da38ef47da621f148fe144b092.tar.bz2 external_llvm-b0319962cfdb18da38ef47da621f148fe144b092.zip |
Only do switch-to-lookup table transformation when TargetTransformInfo
is available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/switch_create.ll')
-rw-r--r-- | test/Transforms/SimplifyCFG/switch_create.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Transforms/SimplifyCFG/switch_create.ll b/test/Transforms/SimplifyCFG/switch_create.ll index b28e4a4550..546cc75f29 100644 --- a/test/Transforms/SimplifyCFG/switch_create.ll +++ b/test/Transforms/SimplifyCFG/switch_create.ll @@ -141,9 +141,8 @@ UnifiedReturnBlock: ; preds = %shortcirc_done.4, %shortcirc_next.4 ret i1 %UnifiedRetVal ; CHECK: @test6 -; CHECK: %switch.tableidx = sub i32 %tmp.2.i, 14 -; CHECK: %0 = icmp ult i32 %switch.tableidx, 6 -; CHECK: select i1 %0, i1 true, i1 false +; CHECK: %tmp.2.i.off = add i32 %tmp.2.i, -14 +; CHECK: %switch = icmp ult i32 %tmp.2.i.off, 6 } define void @test7(i8 zeroext %c, i32 %x) nounwind ssp noredzone { |