summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/select.ll
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-07-25 18:28:13 +0000
committerManman Ren <mren@apple.com>2012-07-25 18:28:13 +0000
commitcc1dc6dc11812839e9651f37be53f95146592b50 (patch)
tree92d51e4d114d34151e8923348d10ae06c6979bce /llvm/test/CodeGen/X86/select.ll
parent70fdf72a4837b1a273ee057b737120d8fc874be2 (diff)
downloadbcm5719-llvm-cc1dc6dc11812839e9651f37be53f95146592b50.tar.gz
bcm5719-llvm-cc1dc6dc11812839e9651f37be53f95146592b50.zip
Disable rematerialization in TwoAddressInstructionPass.
It is redundant; RegisterCoalescer will do the remat if it can't eliminate the copy. Collected instruction counts before and after this. A few extra instructions are generated due to spilling but it is normal to see these kinds of changes with almost any small codegen change, according to Jakob. This also fixed rdar://11830760 where xor is expected instead of movi0. llvm-svn: 160749
Diffstat (limited to 'llvm/test/CodeGen/X86/select.ll')
-rw-r--r--llvm/test/CodeGen/X86/select.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/select.ll b/llvm/test/CodeGen/X86/select.ll
index c8d9345c400..ac9502873ad 100644
--- a/llvm/test/CodeGen/X86/select.ll
+++ b/llvm/test/CodeGen/X86/select.ll
@@ -189,8 +189,8 @@ entry:
%call = tail call noalias i8* @_Znam(i64 %D) nounwind noredzone
ret i8* %call
; CHECK: test12:
-; CHECK: mulq
; CHECK: movq $-1, %rdi
+; CHECK: mulq
; CHECK: cmovnoq %rax, %rdi
; CHECK: jmp __Znam
}
OpenPOWER on IntegriCloud