add a note
authorChris Lattner <sabre@nondot.org>
Sat, 6 Dec 2008 22:49:05 +0000 (22:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 6 Dec 2008 22:49:05 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60632 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index c02eca6410fb86e3b580322febb78cdf803d7bac..eb110fe60f6b670b0899ca3494a91bbb02c05f52 100644 (file)
@@ -1816,3 +1816,18 @@ like the following:
 A similar code sequence works for division.
 
 //===---------------------------------------------------------------------===//
+
+These should compile to the same code, but the later codegen's to useless
+instructions on X86. This may be a trivial dag combine (GCC PR7061):
+
+struct s1 { unsigned char a, b; };
+unsigned long f1(struct s1 x) {
+    return x.a + x.b;
+}
+struct s2 { unsigned a: 8, b: 8; };
+unsigned long f2(struct s2 x) {
+    return x.a + x.b;
+}
+
+//===---------------------------------------------------------------------===//
+