[PATCH] D60673: [SimplifyCFG] Improove and speed up ReduceSwitchRange

Shawn Landden via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 10:06:28 PDT 2019


shawnl updated this revision to Diff 195594.
shawnl added a comment.

Add a second patch that changes SwitchToLookupTable

There were a number of cases where a table was smaller and we still didn't use it, and
also i8 tables are small enough that we should use them. Also, remove xor and and when producing a covered table.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60673/new/

https://reviews.llvm.org/D60673

Files:
  lib/Transforms/Utils/SimplifyCFG.cpp
  test/Transforms/SimplifyCFG/switch-genfori8.ll
  test/Transforms/SimplifyCFG/switch-simplify-range.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60673.195594.patch
Type: text/x-patch
Size: 22090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190417/4ab0645c/attachment.bin>


More information about the llvm-commits mailing list