[llvm-commits] [llvm] r139263 - /llvm/trunk/lib/Target/README.txt
Benjamin Kramer
benny.kra at googlemail.com
Wed Sep 7 15:49:26 PDT 2011
Author: d0k
Date: Wed Sep 7 17:49:26 2011
New Revision: 139263
URL: http://llvm.org/viewvc/llvm-project?rev=139263&view=rev
Log:
Add two notes for correlated-expression optimizations.
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=139263&r1=139262&r2=139263&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Wed Sep 7 17:49:26 2011
@@ -2348,3 +2348,13 @@
probably best to do this in the code generator.
//===---------------------------------------------------------------------===//
+
+unsigned foo(unsigned x, unsigned y) { return (x & y) == 0 || x == 0; }
+should fold to (x & y) == 0.
+
+//===---------------------------------------------------------------------===//
+
+unsigned foo(unsigned x, unsigned y) { return x > y && x != 0; }
+should fold to x > y.
+
+//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list