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

Benjamin Kramer benny.kra at googlemail.com
Wed Mar 28 03:50:19 PDT 2012


Author: d0k
Date: Wed Mar 28 05:50:18 2012
New Revision: 153574

URL: http://llvm.org/viewvc/llvm-project?rev=153574&view=rev
Log:
Add another note about a missed compare with nsw arithmetic instcombine.

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=153574&r1=153573&r2=153574&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Wed Mar 28 05:50:18 2012
@@ -973,6 +973,13 @@
 
 //===---------------------------------------------------------------------===//
 
+int f(int i, int j) { return i < j + 1; }
+int g(int i, int j) { return j > i - 1; }
+Should combine to "i <= j" (the add/sub has nsw).  Currently not
+optimized with "clang -emit-llvm-bc | opt -std-compile-opts".
+
+//===---------------------------------------------------------------------===//
+
 This was noticed in the entryblock for grokdeclarator in 403.gcc:
 
         %tmp = icmp eq i32 %decl_context, 4          





More information about the llvm-commits mailing list