[LLVMbugs] [PATCH] CEE for switch instructions

Eric Kidd emk.lists at gmail.com
Sun Mar 19 04:58:25 PST 2006

Here's a small patch which allows the CEE optimizer to propagate the  
condition value down each non-default branch of a switch statement.

Since (a) the CEE optimizer is unsupported, and (b) I don't actually  
understand how it works anyway, you shouldn't use this patch on  
production code (unless your grasp of what's going on is better than  

This patch includes a test case, and it doesn't cause any new test  
failures on my machine. If the LLVM maintainers would like to use  
this patch, I place it into the public domain.

Share and enjoy!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cee-switch.diff
Type: application/octet-stream
Size: 3243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20060319/0da6b5e9/attachment.obj>

More information about the llvm-bugs mailing list