[LLVMdev] if's to switch transformation?

Eric van Riet Paap eric at vanrietpaap.nl
Fri Dec 23 02:53:02 PST 2005


hello everyone,

I few days ago I had some code (for the PyPy project) that llc - 
march=c converted to a switch statement and gcc compiled that nicely  
to a jumptable in the .s file. Now I try to reproduce when directly  
going from a .ll to a .s file. But I now see a long list of compare  
and jumps instead of the jumptable. Is there a transformation that  
does this if->switch(ing) or is that in the part of llc that  
generates the c file?

cheers
Eric van Riet Paap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20051223/5708a337/attachment.html>


More information about the llvm-dev mailing list