[PATCH] D107367: [X86][SchedModel] Add missing ReadAdvance for some arithmetic ops (PR51318 and PR51322)

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 09:21:51 PDT 2021


andreadb created this revision.
andreadb added reviewers: RKSimon, craig.topper, lebedev.ri.
Herald added subscribers: pengfei, gbedwell, hiraditya.
andreadb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This fixes a bug where implicit uses of EFLAGS were not marked as ReadAdvance in the RM/MR variants of ADC/SBB (PR51318).

This also fixes the absence of ReadAdvance for the register operand of RMW arithmetic instructions (PR51322).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107367

Files:
  llvm/lib/Target/X86/X86InstrArithmetic.td
  llvm/test/tools/llvm-mca/X86/BtVer2/adc-sequence-readadvance.s
  llvm/test/tools/llvm-mca/X86/BtVer2/rmw-adc-sequence-readadvance.s
  llvm/test/tools/llvm-mca/X86/BtVer2/rmw-add-sequence-readadvance.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107367.363772.patch
Type: text/x-patch
Size: 8152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210803/e3acf556/attachment.bin>


More information about the llvm-commits mailing list