[PATCH] D28176: [GlobalISel] Add support for switch statements
Kristof Beyls via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 30 07:54:53 PST 2016
kristof.beyls created this revision.
kristof.beyls added reviewers: qcolombet, t.p.northover, ab, dsanders, rovka.
kristof.beyls added a subscriber: llvm-commits.
Herald added a subscriber: dberris.
Add support for lowering switch statements.
This patch does this using a trivial chain of conditional branches.
In the future, we probably want to reuse the optimized switch lowering used in SelectionDAG.
This increases the compile pass rate in the test-suite run with -O0 -mllvm -global-isel=true -mllvm -global-isel-abort=1 from 53.6% to 59.9%.
https://reviews.llvm.org/D28176
Files:
include/llvm/CodeGen/GlobalISel/IRTranslator.h
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28176.82728.patch
Type: text/x-patch
Size: 4883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161230/45a0500b/attachment.bin>
More information about the llvm-commits
mailing list