[PATCH] D85233: [GlobalISel] Implement bit-test switch table optimization

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 11:29:45 PDT 2020


aemerson created this revision.
aemerson added reviewers: paquette, arsenm.
Herald added subscribers: jfb, hiraditya, rovka.
Herald added a project: LLVM.
aemerson requested review of this revision.
Herald added a subscriber: wdng.

This is mostly a straight port from SelectionDAG. We re-use the actual bit-test analysis part from SwitchLoweringUtils, which was factored out earlier to support jump-tables.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85233

Files:
  llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
  llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-bittest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85233.282975.patch
Type: text/x-patch
Size: 18727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200804/0a4c8dda/attachment.bin>


More information about the llvm-commits mailing list