[PATCH] D156612: [SimplifyCFG] Find the smallest table considering overflow in `switchToLookupTable`

DianQK via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 08:12:25 PDT 2023


DianQK updated this revision to Diff 545675.
DianQK retitled this revision from " [SimplifyCFG] Find the smallest table considering overflow in `switchToLookupTable`" to "[SimplifyCFG] Find the smallest table considering overflow in `switchToLookupTable`".
DianQK added a comment.
Herald added a subscriber: mgrang.

Try to find a minimal range.
Some test cases got better and some got worse.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156612

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/X86/CoveredLookupTable.ll
  llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll
  llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll
  llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156612.545675.patch
Type: text/x-patch
Size: 20157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/6e1c326e/attachment.bin>


More information about the llvm-commits mailing list