[PATCH] D109565: Teach SimplifyCFG to fold switches into lookup tables in more cases.

Owen Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 15 14:10:11 PDT 2021


resistor updated this revision to Diff 372800.
resistor added a comment.

Add negative test for ptrtoint.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109565

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-bitcast.ll
  llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109565.372800.patch
Type: text/x-patch
Size: 8252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210915/e18828ad/attachment.bin>


More information about the llvm-commits mailing list