[llvm-commits] PATCH: instcombine switch on select of constants to br
Alistair Lynn
arplynn at gmail.com
Sun Jan 9 16:57:36 PST 2011
Hi-
The attached patch catches a previously missed optimisation on switches of the
form switch (select cond, A, B) where A and B are constants - the switch can be
folded to a conditional branch on cond.
Test case attached.
Alistair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instcombine-switch-patch.diff
Type: application/octet-stream
Size: 2917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110110/c2f245ab/attachment.obj>
-------------- next part --------------
More information about the llvm-commits
mailing list