[PATCH] SimplifyCFG: don't remove unreachable defaults from switch instructions; exploit them instead!
Owen Anderson
resistor at mac.com
Fri Dec 5 01:31:15 PST 2014
Can you update LowerSwitch.cpp to incorporate this optimization? Otherwise targets that rely on it are losing this functionality.
—Owen
> On Dec 4, 2014, at 3:44 PM, Hans Wennborg <hans at chromium.org> wrote:
>
> Addressing David's patches.
>
> 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
> <D6471.16960.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list