1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

[X86] Tag CLFLUSHOPT with same scheduling behaviour as CLFLUSH

llvm-svn: 319253
This commit is contained in:
Simon Pilgrim 2017-11-28 23:25:42 +00:00
parent 88b4a0878a
commit 7a4d895cdc
2 changed files with 5 additions and 4 deletions

View File

@ -2708,9 +2708,10 @@ let Predicates = [HasTBM] in {
// Memory Instructions
//
let Predicates = [HasCLFLUSHOPT] in
let Predicates = [HasCLFLUSHOPT], SchedRW = [WriteLoad] in
def CLFLUSHOPT : I<0xAE, MRM7m, (outs), (ins i8mem:$src),
"clflushopt\t$src", [(int_x86_clflushopt addr:$src)]>, PD;
"clflushopt\t$src", [(int_x86_clflushopt addr:$src)],
IIC_SSE_PREFETCH>, PD;
let Predicates = [HasCLWB] in
def CLWB : I<0xAE, MRM6m, (outs), (ins i8mem:$src), "clwb\t$src",

View File

@ -13,7 +13,7 @@ define void @clflushopt(i8* %p) nounwind {
;
; GLM-LABEL: clflushopt:
; GLM: # BB#0:
; GLM-NEXT: clflushopt (%rdi)
; GLM-NEXT: clflushopt (%rdi) # sched: [3:1.00]
; GLM-NEXT: retq # sched: [4:1.00]
;
; SKYLAKE-LABEL: clflushopt:
@ -28,7 +28,7 @@ define void @clflushopt(i8* %p) nounwind {
;
; ZNVER1-LABEL: clflushopt:
; ZNVER1: # BB#0:
; ZNVER1-NEXT: clflushopt (%rdi)
; ZNVER1-NEXT: clflushopt (%rdi) # sched: [8:0.50]
; ZNVER1-NEXT: retq # sched: [1:0.50]
tail call void @llvm.x86.clflushopt(i8* %p)
ret void