diff options
| author | Quentin Colombet <qcolombet@apple.com> | 2016-04-26 23:14:29 +0000 |
|---|---|---|
| committer | Quentin Colombet <qcolombet@apple.com> | 2016-04-26 23:14:29 +0000 |
| commit | 08e79990a0a8c40e1ebed0b8f90f993ea792cac7 (patch) | |
| tree | 3da9ab9319f0bc86031f63bcfc097f1ec81cf3d8 /llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll | |
| parent | 3f192450151f4ed9eb656037193651781adf7d41 (diff) | |
| download | bcm5719-llvm-08e79990a0a8c40e1ebed0b8f90f993ea792cac7.tar.gz bcm5719-llvm-08e79990a0a8c40e1ebed0b8f90f993ea792cac7.zip | |
[MachineBasicBlock] Take advantage of the partially dead information.
Thanks to that information we wouldn't lie on a register being live whereas it
is not.
llvm-svn: 267622
Diffstat (limited to 'llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll | 3 |
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 74599cbdc17..f2b9dee9103 100644 --- a/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll +++ b/llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll @@ -167,11 +167,10 @@ define i32 @test_feed_cmov(i32* %addr, i32 %desired, i32 %new) { ; x8664-sahf-LABEL: test_feed_cmov: ; x8664-sahf: cmpxchgl -; x8664-sahf: pushq %rax +; RAX is dead, do not push or pop it. ; x8664-sahf-NEXT: seto %al ; x8664-sahf-NEXT: lahf ; x8664-sahf-NEXT: movq %rax, [[FLAGS:%.*]] -; x8664-sahf-NEXT: popq %rax ; x8664-sahf-NEXT: callq foo ; x8664-sahf-NEXT: pushq %rax ; x8664-sahf-NEXT: movq [[FLAGS]], %rax |

