diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-09-26 14:01:53 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-09-26 14:01:53 +0000 |
commit | cd3a11f72576b88578f5615ab3d24919b6e60aae (patch) | |
tree | 15078b040090cc4ef4057419dfe2a85719a1dfb3 /llvm/test/Transforms/SimplifyCFG | |
parent | 3f6a5c1b2dff14f4b6e3a0df8badd0714d46481e (diff) | |
download | bcm5719-llvm-cd3a11f72576b88578f5615ab3d24919b6e60aae.tar.gz bcm5719-llvm-cd3a11f72576b88578f5615ab3d24919b6e60aae.zip |
Address Duncan's comments on r164684:
- Put statistics in alphabetical order
- Don't use getZextValue when building TableInt, just use APInts
- Introduce Create{Z,S}ExtOrTrunc in IRBuilder.
llvm-svn: 164696
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG')
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll b/llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll index 97c80b9d48a..ef9d51669d3 100644 --- a/llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll +++ b/llvm/test/Transforms/SimplifyCFG/switch_to_lookup_table.ll @@ -221,8 +221,8 @@ lor.end: ; CHECK-NEXT: %0 = icmp ult i8 %switch.tableidx, 59 ; CHECK-NEXT: br i1 %0, label %switch.lookup, label %lor.end ; CHECK: switch.lookup: -; CHECK-NEXT: %switch.zext = zext i8 %switch.tableidx to i59 -; CHECK-NEXT: %switch.shiftamt = mul i59 %switch.zext, 1 +; CHECK-NEXT: %switch.cast = zext i8 %switch.tableidx to i59 +; CHECK-NEXT: %switch.shiftamt = mul i59 %switch.cast, 1 ; CHECK-NEXT: %switch.downshift = lshr i59 -288230375765830623, %switch.shiftamt ; CHECK-NEXT: %switch.masked = trunc i59 %switch.downshift to i1 ; CHECK-NEXT: br label %lor.end |