]> granicus.if.org Git - llvm/commit
[X86][BtVer2] Add a read-advance to every implicit register use of CMPXCHG8B/16B.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 23 Aug 2019 12:19:45 +0000 (12:19 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 23 Aug 2019 12:19:45 +0000 (12:19 +0000)
commit5f9cff8da40baf0cb51734dd9e3223730305e5d1
tree29dd454dd74664498c54e5a2950a8c960901d694
parent83240b0bfa66046929cc1025aa0635dea00ff999
[X86][BtVer2] Add a read-advance to every implicit register use of CMPXCHG8B/16B.

This is a follow up of r369642.

This patch assigns a ReadAfterLd to every implicit register use of instruction
CMPXCHG8B and instruction CMPXCHG16B. Perf micro-benchmarks show that implicit
registers are read after 3cy from the start of execution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ScheduleBtVer2.td
test/tools/llvm-mca/X86/BtVer2/cmpxchg-read-advance.s