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

Chris Lattner sabre at nondot.org
Wed Feb 16 11:16:34 PST 2011


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 ();
+}
+
+//===---------------------------------------------------------------------===//
+





More information about the llvm-commits mailing list