mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
ce0f9aef12
The fast register allocator is not supposed to work in the optimizing pipeline. It doesn't make sense to compute live intervals, run full copy coalescing, and then run RAFast. Fast register allocation in the optimizing pipeline is better done by RABasic. llvm-svn: 158242
24 lines
671 B
LLVM
24 lines
671 B
LLVM
; RUN: llc -mtriple=x86_64-pc-linux %s -o - -regalloc=fast -optimize-regalloc=0 | FileCheck %s
|
|
|
|
; We used to consider the early clobber in the second asm statement as
|
|
; defining %0 before it was read. This caused us to omit the
|
|
; movq -8(%rsp), %rdx
|
|
|
|
; CHECK: #APP
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: movq %rcx, %rax
|
|
; CHECK-NEXT: movq %rax, -8(%rsp)
|
|
; CHECK-NEXT: movq -8(%rsp), %rdx
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: movq %rdx, %rax
|
|
; CHECK-NEXT: movq %rdx, -8(%rsp)
|
|
; CHECK-NEXT: ret
|
|
|
|
define i64 @foo() {
|
|
entry:
|
|
%0 = tail call i64 asm "", "={cx}"() nounwind
|
|
%1 = tail call i64 asm "", "=&r,0,r,~{rax}"(i64 %0, i64 %0) nounwind
|
|
ret i64 %1
|
|
}
|