mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-25 14:02:52 +02:00
975bf7a977
Summary: Without this, this command $ llvm-run llc -stop-after machine-cp -o - <( echo '' ) outputs an error, because we close stdout twice -- once when closing the file opened for "-o", and again when closing outs(). Also clarify in the outs() definition that you can't ever call it if you want to open your own raw_fd_ostream on stdout. Reviewers: jroelofs, tstellarAMD Subscribers: jholewinski, qcolombet, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D17422 llvm-svn: 261286
20 lines
680 B
LLVM
20 lines
680 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-unknown -o /dev/null -stop-after machine-scheduler %s 2>&1 | FileCheck %s --check-prefix=PRE-RA
|
|
; RUN: llc -mtriple=x86_64-unknown-unknown -o /dev/null -stop-after prologepilog %s 2>&1 | FileCheck %s --check-prefix=POST-RA
|
|
|
|
; This test verifies that the virtual register references in machine function's
|
|
; liveins are cleared after register allocation.
|
|
|
|
define i32 @test(i32 %a, i32 %b) {
|
|
body:
|
|
%c = mul i32 %a, %b
|
|
ret i32 %c
|
|
}
|
|
|
|
; PRE-RA: liveins:
|
|
; PRE-RA-NEXT: - { reg: '%edi', virtual-reg: '%0' }
|
|
; PRE-RA-NEXT: - { reg: '%esi', virtual-reg: '%1' }
|
|
|
|
; POST-RA: liveins:
|
|
; POST-RA-NEXT: - { reg: '%edi' }
|
|
; POST-RA-NEXT: - { reg: '%esi' }
|