diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-03 14:31:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-03 14:31:00 +0000 |
commit | 3a2a4846a67c8fa7b604c76d238fddd8b51886fd (patch) | |
tree | 9663cf69a2bc7d071a50ecf9f50bd163b26e8a37 /lib/Target/README.txt | |
parent | 57b6e9eb6ccb757b74beeb377c7c16d08468d3e8 (diff) | |
download | llvm-3a2a4846a67c8fa7b604c76d238fddd8b51886fd.tar.gz llvm-3a2a4846a67c8fa7b604c76d238fddd8b51886fd.tar.bz2 llvm-3a2a4846a67c8fa7b604c76d238fddd8b51886fd.tar.xz |
Add a README entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r-- | lib/Target/README.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt index acf36b8482..144bf5d3e3 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1835,3 +1835,16 @@ See GCC PR34949 //===---------------------------------------------------------------------===// +In this code: + +long foo(long x) { + return x > 1 ? x : 1; +} + +LLVM emits a comparison with 1 instead of 0. 0 would be equivalent +and cheaper on most targets. + +LLVM prefers comparisons with zero over non-zero in general, but in this +case it choses instead to keep the max operation obvious. + +//===---------------------------------------------------------------------===// |