[PATCH] D45486: [X86][Atom] Convert Atom scheduler model to SchedRW (PR32431)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 08:09:20 PDT 2018


RKSimon added inline comments.


================
Comment at: test/CodeGen/X86/sse-schedule.ll:6135
 ; ATOM-NEXT:    nop # sched: [1:0.50]
-; ATOM-NEXT:    nop # sched: [1:0.50]
-; ATOM-NEXT:    nop # sched: [1:0.50]
----------------
craig.topper wrote:
> Why did the number of nops change?
The actual test nop is inside an inlineasm, which can't be scheduled. Itineraries' getInstrLatency default to 0cy, but TargetSchedModel::computeInstrLatency defaults to 1cy.

TBH in this case, I think the schedrw is slightly better but only by chance.


================
Comment at: test/CodeGen/X86/sse2-schedule.ll:10709
-; ATOM-NEXT:    paddw %xmm0, %xmm1 # sched: [1:0.50]
-; ATOM-NEXT:    movdqa %xmm1, %xmm0 # sched: [1:0.50]
 ; ATOM-NEXT:    retq # sched: [79:39.50]
----------------
craig.topper wrote:
> Any idea why the paddw wasn't commuted before to make the movdqa unnecessary?
Sorry, no - with the patch MachineCSE is performing the commute.


Repository:
  rL LLVM

https://reviews.llvm.org/D45486





More information about the llvm-commits mailing list