[LLVMbugs] [PATCH] CEE for switch instructions

Chris Lattner sabre at nondot.org
Sun Mar 19 11:38:04 PST 2006


On Sun, 19 Mar 2006, Eric Kidd wrote:
> Here's a small patch which allows the CEE optimizer to propagate the 
> condition value down each non-default branch of a switch statement.

The patch looks great, applied:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060313/032730.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060313/032731.html

Thanks!

-Chris

> 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 mine!).
>
> 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!
>
> Cheers,
> Eric
>
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-bugs mailing list