[llvm-commits] [llvm] r163302 - in /llvm/trunk: lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/switch_create.ll test/Transforms/SimplifyCFG/switch_to_lookup_table.ll

Nadav Rotem nrotem at apple.com
Mon Sep 10 01:35:49 PDT 2012


On Sep 9, 2012, at 1:45 AM, Chandler Carruth <chandlerc at google.com> wrote:

> My idea had been to extend the IR to directly represent the concept of this operation. Currently, we have a 'br' instruction to represent binary control flow selection, and we have a 'switch' instruction to represent N-way control flow selection. We also have 'select' to represent binary value selection, but no instruction to represent N-way value selection. I suggested adding a new instruction 'selectswitch' (or some better name) to support selecting over N values based on an integer much the way switch works.
> 


How would you use selectswitch ?  Will it allows you to do things that you can't do today ?


Thanks,
Nadav

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120910/0eb66015/attachment.html>


More information about the llvm-commits mailing list