mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
f220e7cb76
We want to run the Machine Scheduler instead of the List Scheduler after RA. Checked with a performance run on a Power 9 machine with SPEC 2006 and while some benchmarks improved and others degraded the geomean was slightly improved with the Machine Scheduler. Differential Revision: https://reviews.llvm.org/D45265 llvm-svn: 336295
49 lines
1.3 KiB
LLVM
49 lines
1.3 KiB
LLVM
; RUN: llc -filetype=obj <%s | llvm-objdump --disassemble - | FileCheck %s
|
|
target datalayout = "e-m:e-i64:64-n32:64"
|
|
target triple = "powerpc64le-unknown-linux-gnu"
|
|
|
|
@ptr = common global i8* null, align 8
|
|
|
|
; Verify there's no junk between these two instructions from misemitted
|
|
; EH_SjLj_Setup.
|
|
|
|
; CHECK: li 3, 1
|
|
; CHECK: cmplwi 3, 0
|
|
|
|
define void @h() nounwind {
|
|
%1 = load i8**, i8*** bitcast (i8** @ptr to i8***), align 8
|
|
%2 = tail call i8* @llvm.frameaddress(i32 0)
|
|
store i8* %2, i8** %1, align 8
|
|
%3 = tail call i8* @llvm.stacksave()
|
|
%4 = getelementptr inbounds i8*, i8** %1, i64 2
|
|
store i8* %3, i8** %4, align 8
|
|
%5 = bitcast i8** %1 to i8*
|
|
%6 = tail call i32 @llvm.eh.sjlj.setjmp(i8* %5)
|
|
%7 = icmp eq i32 %6, 0
|
|
br i1 %7, label %9, label %8
|
|
|
|
; <label>:8: ; preds = %0
|
|
tail call void @g()
|
|
br label %10
|
|
|
|
; <label>:9: ; preds = %0
|
|
tail call void @f()
|
|
br label %10
|
|
|
|
; <label>:10: ; preds = %9, %8
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone
|
|
declare i8* @llvm.frameaddress(i32)
|
|
|
|
; Function Attrs: nounwind
|
|
declare i8* @llvm.stacksave()
|
|
|
|
; Function Attrs: nounwind
|
|
declare i32 @llvm.eh.sjlj.setjmp(i8*)
|
|
|
|
declare void @g()
|
|
|
|
declare void @f()
|