add a note from llvmdev
authorChris Lattner <sabre@nondot.org>
Tue, 28 Dec 2010 18:45:02 +0000 (18:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Dec 2010 18:45:02 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index c9561660b1c25b1b5433ad6ee9379e0953265814..ec5c412765f783561e37e5c2b95bce2885ad38c3 100644 (file)
@@ -2065,3 +2065,14 @@ entry:
 }
 
 //===---------------------------------------------------------------------===//
+
+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
+}
+
+//===---------------------------------------------------------------------===//