diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-13 23:28:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 23:28:40 +0000 |
| commit | fb534d97b50cb4670a57c3153bf545a306e4ac79 (patch) | |
| tree | 350ea4277cc83ed1e3ada494a7b1a860e8b2be77 /llvm | |
| parent | 52ce62f06964d4212f31a01551b8106794b4cc7e (diff) | |
| download | bcm5719-llvm-fb534d97b50cb4670a57c3153bf545a306e4ac79.tar.gz bcm5719-llvm-fb534d97b50cb4670a57c3153bf545a306e4ac79.zip | |
X86 if conversion + tail merging issues from PR6032.
llvm-svn: 93372
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index aa7bb3d9788..f146ff36345 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -1868,3 +1868,23 @@ carried over to machine instructions. Asm printer (or JIT) can use this information to add the "lock" prefix. //===---------------------------------------------------------------------===// + +The X86 backend should be able to if-convert SSE comparisons like "ucomisd" to +"cmpsd". For example, this code: + +double d1(double x) { return x == x ? x : x + x; } + +Compiles into: + +_d1: + ucomisd %xmm0, %xmm0 + jnp LBB1_2 + addsd %xmm0, %xmm0 + ret +LBB1_2: + ret + +Also, the 'ret's should be shared. This is PR6032. + +//===---------------------------------------------------------------------===// + |

