[X86][Sched] Add zero idiom sched data to the SNB model.
authorClement Courbet <courbet@google.com>
Fri, 21 Sep 2018 14:07:20 +0000 (14:07 +0000)
committerClement Courbet <courbet@google.com>
Fri, 21 Sep 2018 14:07:20 +0000 (14:07 +0000)
commit8171bd8e0f038fb72b39888fc34d39ce19804d40
tree0f9ce4b7d8d134a5377b033d5c050902ec60e32b
parente12c7e642135e4d976efa697f0da7b9968fe4559
[X86][Sched] Add zero idiom sched data to the SNB model.

Summary:
On SNB, renamer-based zeroing does not work for:
 - 16 and 8-bit GPRs[1].
 - MMX [2].
 - ANDN variants [3]

[1] echo 'sub %ax, %ax' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
[2] echo 'pxor %mm0, %mm0' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
[3] echo 'andnps %xmm0, %xmm0' | /tmp/llvm-exegesis -mode=uops -snippets-file=-

Reviewers: RKSimon, andreadb

Subscribers: gbedwell, craig.topper, llvm-commits

Differential Revision: https://reviews.llvm.org/D52358

llvm-svn: 342736
llvm/lib/Target/X86/X86SchedSandyBridge.td
llvm/test/CodeGen/X86/avx-schedule.ll
llvm/test/CodeGen/X86/avx512-schedule.ll
llvm/test/CodeGen/X86/sse-schedule.ll
llvm/test/tools/llvm-mca/X86/SandyBridge/zero-idioms.s [new file with mode: 0644]