[LLVMbugs] [PATCH] CEE for switch instructions
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...
Size: 3243 bytes
Desc: not available
More information about the llvm-bugs