[PATCH] D156612: [SimplifyCFG] Add unsigned max-min comparison to `switchToLookupTable`.

DianQK via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 06:27:22 PDT 2023


DianQK created this revision.
DianQK added reviewers: nikic, khei4.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
DianQK requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When converting to a lookup table, we can also use unsigned comparisons to determine if the transformation is OK.
Closes #64231.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156612

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156612.545431.patch
Type: text/x-patch
Size: 5570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230730/c3df5c4a/attachment.bin>


More information about the llvm-commits mailing list