Bug 18347: Sparse switches lowered to an else-if chain
Jasper Neumann
jn at sirrida.de
Sat Jan 11 06:33:16 PST 2014
Hi all,
here is the patch as described in
http://llvm.org/bugs/show_bug.cgi?id=18347
Would someone please review the patch and if OK check it in for me, please?
For testing purposes it might make sense to temporarily disable
dispatching with jump tables by commenting out the two lines containing
"handleJTSwitchCase" near the bottom of SelectionDAGBuilder::visitSwitch
in llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp and also to
activate the logging of the splitting behavior in
SelectionDAGBuilder::handleBTSplitSwitchCase.
Cheers
Jasper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 18347.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140111/143e7817/attachment.bin>
More information about the llvm-commits
mailing list