[PATCH] SimplifyCFG: don't remove unreachable defaults from switch instructions; exploit them instead!
Hans Wennborg
hans at chromium.org
Wed Dec 3 11:26:18 PST 2014
> I think it would be nice to split the patch into middle-end and backend pieces.
I've uploaded the backend part here: http://reviews.llvm.org/D6510
http://reviews.llvm.org/D6471
Files:
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/UnreachableEliminate.ll
test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
test/Transforms/SimplifyCFG/switch-range-to-icmp.ll
test/Transforms/SimplifyCFG/switch-to-br.ll
test/Transforms/SimplifyCFG/switch-to-select-two-case.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6471.16877.patch
Type: text/x-patch
Size: 19405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141203/b36a9e79/attachment.bin>
More information about the llvm-commits
mailing list