diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-11-28 04:52:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-11-28 04:52:39 +0000 |
| commit | 820c94e467c29c72ccd9f48e2e20d200f5cab962 (patch) | |
| tree | 2e4f6fabb40c973482192a25cc161daf54fd010e /llvm/lib | |
| parent | 1f47b25727aed3a2581bbb06a2819bc37ecb7242 (diff) | |
| download | bcm5719-llvm-820c94e467c29c72ccd9f48e2e20d200f5cab962.tar.gz bcm5719-llvm-820c94e467c29c72ccd9f48e2e20d200f5cab962.zip | |
Add a missed optimization
llvm-svn: 24495
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index 354439bfdb0..c9f23d598be 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -73,3 +73,12 @@ Another useful one would be ~0ULL >> X and ~0ULL << X. Should support emission of the bswap instruction, probably by adding a new DAG node for byte swapping. Also useful on PPC which has byte-swapping loads. +//===---------------------------------------------------------------------===// + +Compile this: +_Bool f(_Bool a) { return a!=1; } + +into: + movzbl %dil, %eax + xorl $1, %eax + ret |

