mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d56aa55358
commit
3f705e660a
@ -380,6 +380,21 @@ bool %test(int %X) {
|
||||
|
||||
This may just be a matter of using 'test' to write bigger patterns for X86cmp.
|
||||
|
||||
An important case is comparison against zero:
|
||||
|
||||
if (X == 0) ...
|
||||
|
||||
instead of:
|
||||
|
||||
cmpl $0, %eax
|
||||
je LBB4_2 #cond_next
|
||||
|
||||
use:
|
||||
test %eax, %eax
|
||||
jz LBB4_2
|
||||
|
||||
which is smaller.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
SSE should implement 'select_cc' using 'emulated conditional moves' that use
|
||||
|
Loading…
Reference in New Issue
Block a user