[llvm-commits] [llvm] r125681 - /llvm/trunk/lib/Target/README.txt

Benjamin Kramer benny.kra at googlemail.com
Wed Feb 16 11:30:00 PST 2011


On 16.02.2011, at 20:16, Chris Lattner wrote:

> Author: lattner
> Date: Wed Feb 16 13:16:34 2011
> New Revision: 125681
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=125681&view=rev
> Log:
> Add a few missed xforms from GCC PR14753
> 
> Modified:
>    llvm/trunk/lib/Target/README.txt
> 
> Modified: llvm/trunk/lib/Target/README.txt
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=125681&r1=125680&r2=125681&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/README.txt (original)
> +++ llvm/trunk/lib/Target/README.txt Wed Feb 16 13:16:34 2011
> @@ -2218,3 +2218,32 @@
> avoids partial register stalls in some important cases.
> 
> //===---------------------------------------------------------------------===//
> +
> +Some missed instcombine xforms (from GCC PR14753):
> +
> +void bar (void);
> +
> +void mask_gt (unsigned int a) {
> +/* This is equivalent to a > 15.  */
> +if ((a & ~7) > 8)
> +bar();
> +}
> +
> +void neg_eq_cst(unsigned int a) {
> +if (-a == 123)
> +bar();
> +}
> +
> +void minus_cst(unsigned int a) {
> +if (20 - a == 5)
> +bar();
> +}
> +
> +void rotate_cst (unsigned a) {
> +a = (a << 10) | (a >> 22);
> +if (a == 123)
> +bar ();
> +}
> +
> +//===---------------------------------------------------------------------===//
> +

Some of those are in the other PR14753 section in README.txt already …



More information about the llvm-commits mailing list