forked from OSchip/llvm-project
Added cost of ZEROALL and ZEROUPPER instrs in btver2 cpu.
Differential Revision https://reviews.llvm.org/D35834 llvm-svn: 309269
This commit is contained in:
parent
61c1bd5abc
commit
e255526d0b
|
@ -462,5 +462,16 @@ def WriteVSQRTYPSLd: SchedWriteRes<[JLAGU, JFPU1]> {
|
|||
}
|
||||
def : InstRW<[WriteVSQRTYPSLd], (instregex "VSQRTPSYm")>;
|
||||
|
||||
def WriteJVZEROALL: SchedWriteRes<[]> {
|
||||
let Latency = 90;
|
||||
let NumMicroOps = 73;
|
||||
}
|
||||
def : InstRW<[WriteJVZEROALL], (instregex "VZEROALL")>;
|
||||
|
||||
def WriteJVZEROUPPER: SchedWriteRes<[]> {
|
||||
let Latency = 46;
|
||||
let NumMicroOps = 37;
|
||||
}
|
||||
def : InstRW<[WriteJVZEROUPPER], (instregex "VZEROUPPER")>;
|
||||
} // SchedModel
|
||||
|
||||
|
|
|
@ -2850,7 +2850,7 @@ define void @test_zeroall() {
|
|||
;
|
||||
; BTVER2-LABEL: test_zeroall:
|
||||
; BTVER2: # BB#0:
|
||||
; BTVER2-NEXT: vzeroall
|
||||
; BTVER2-NEXT: vzeroall # sched: [90:?]
|
||||
; BTVER2-NEXT: retq # sched: [4:1.00]
|
||||
;
|
||||
; ZNVER1-LABEL: test_zeroall:
|
||||
|
@ -2875,7 +2875,7 @@ define void @test_zeroupper() {
|
|||
;
|
||||
; BTVER2-LABEL: test_zeroupper:
|
||||
; BTVER2: # BB#0:
|
||||
; BTVER2-NEXT: vzeroupper
|
||||
; BTVER2-NEXT: vzeroupper # sched: [46:?]
|
||||
; BTVER2-NEXT: retq # sched: [4:1.00]
|
||||
;
|
||||
; ZNVER1-LABEL: test_zeroupper:
|
||||
|
|
Loading…
Reference in New Issue