[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
Fri Sep 10 15:29:51 PDT 2021


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

Update based on comments to preserve original behavior of shouldBuildLookupTablesForConstant().


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/switch-to-lookup-bitcast.ll
  llvm/test/Transforms/SimplifyCFG/switch-to-lookup-gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109565.372023.patch
Type: text/x-patch
Size: 8027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210910/12e1c529/attachment.bin>


More information about the llvm-commits mailing list