OSDN Git Service

[X86] Fix the SchedRW for memory forms of CMP and TEST.
authorCraig Topper <craig.topper@intel.com>
Tue, 20 Mar 2018 03:55:17 +0000 (03:55 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 20 Mar 2018 03:55:17 +0000 (03:55 +0000)
commit95aa4b0a44a4a0789c43fd2c4b9d0ee94fd9b0ec
tree48f7d6209b265f9450ec4ebb855a7634a03e5331
parent507d7742b96ab37349a284a98cbb6b05cc3ff965
[X86] Fix the SchedRW for memory forms of CMP and TEST.

They were incorrectly marked as RMW operations. Some of the CMP instrucions worked, but the ones that use a similar encoding as RMW form of ADD ended up marked as RMW.

TEST used the same tablegen class as some of the CMPs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrArithmetic.td
test/CodeGen/X86/schedule-x86_64.ll