diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-06 22:49:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-06 22:49:05 +0000 |
commit | bfccda68988d24b25b82060d4186feb1ee0fc245 (patch) | |
tree | 1e6eedd3fe0fcea806bf201dcf5ab7efc0e4058f /lib/Target | |
parent | b37c3a49ebe588e8b5da15d35906e0b987bad7d6 (diff) | |
download | external_llvm-bfccda68988d24b25b82060d4186feb1ee0fc245.zip external_llvm-bfccda68988d24b25b82060d4186feb1ee0fc245.tar.gz external_llvm-bfccda68988d24b25b82060d4186feb1ee0fc245.tar.bz2 |
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/README.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index c02eca6..eb110fe 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -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; +} + +//===---------------------------------------------------------------------===// + |