add a note
authorChris Lattner <sabre@nondot.org>
Wed, 20 Sep 2006 06:32:10 +0000 (06:32 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Sep 2006 06:32:10 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30515 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index dd02948f8701c0c66bd04a3836d4ba73d7ce51f9..d2aaa592e6b1f30ab3368a8b160e428a0a8f80d0 100644 (file)
@@ -734,3 +734,19 @@ This currently compiles to:
        addl $12, %esp
 
 The add\sub pair is really unneeded here.
+
+//===---------------------------------------------------------------------===//
+
+We generate really bad code in some cases due to lowering SETCC/SELECT at 
+legalize time, which prevents the post-legalize dag combine pass from
+understanding the code.  As a silly example, this prevents us from folding 
+stuff like this:
+
+bool %test(ulong %x) {
+  %tmp = setlt ulong %x, 4294967296
+  ret bool %tmp
+}
+
+into x.h == 0
+
+