[PATCH] SimplifyCFG: don't remove unreachable defaults from switch instructions; exploit them instead!
Hans Wennborg
hans at chromium.org
Thu Dec 4 14:40:55 PST 2014
I committed the tests that were checking existing functionality in r223395 and r223396 to reduce the size of this patch a little.
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-select-two-case.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6471.16955.patch
Type: text/x-patch
Size: 17178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141204/0d764d4c/attachment.bin>
More information about the llvm-commits
mailing list