summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-04-26 23:14:24 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-04-26 23:14:24 +0000
commit3f192450151f4ed9eb656037193651781adf7d41 (patch)
tree95027b150ccd86a0c121a3f1e932196483d534bb /llvm/test
parent053c2a6f25e48132d8f66bd73f3575da47cfde88 (diff)
downloadbcm5719-llvm-3f192450151f4ed9eb656037193651781adf7d41.tar.gz
bcm5719-llvm-3f192450151f4ed9eb656037193651781adf7d41.zip
[MachineInstrBundle] Improvement the recognition of dead definitions.
Now, it is possible to know that partial definitions are dead definitions and recognize that clobbered registers are also dead. llvm-svn: 267621
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll b/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll
index 6f54a0435f8..74599cbdc17 100644
--- a/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll
+++ b/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll
@@ -63,11 +63,10 @@ define i64 @test_intervening_call(i64* %foo, i64 %bar, i64 %baz) {
; x8664-sahf-NEXT: popq %rax
; x8664-sahf-NEXT: movq %rax, %rdi
; x8664-sahf-NEXT: callq bar
-; x8664-sahf-NEXT: pushq %rax
+; RAX is dead, no need to push and pop it.
; x8664-sahf-NEXT: movq [[FLAGS]], %rax
; x8664-sahf-NEXT: addb $127, %al
; x8664-sahf-NEXT: sahf
-; x8664-sahf-NEXT: popq %rax
; x8664-sahf-NEXT: jne
%cx = cmpxchg i64* %foo, i64 %bar, i64 %baz seq_cst seq_cst
OpenPOWER on IntegriCloud