[llvm-commits] [llvm] r122603 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Tue Dec 28 10:45:02 PST 2010
Author: lattner
Date: Tue Dec 28 12:45:02 2010
New Revision: 122603
URL: http://llvm.org/viewvc/llvm-project?rev=122603&view=rev
Log:
add a note from llvmdev
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=122603&r1=122602&r2=122603&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Tue Dec 28 12:45:02 2010
@@ -2065,3 +2065,14 @@
}
//===---------------------------------------------------------------------===//
+
+This compare could fold to false:
+
+define i1 @g(i32 a) nounwind readnone {
+ %add = shl i32 %a, 1
+ %mul = shl i32 %a, 1
+ %cmp = icmp ugt i32 %add, %mul
+ ret i1 %cmp
+}
+
+//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list