This is an archive of the discontinued LLVM Phabricator instance.

Improved throughput calculation
AbandonedPublic

Authored by avt77 on Jun 7 2017, 6:55 AM.

Details

Summary

Some instructions (zerroall, zeroupper, etc.) don't have any modeled throughput values. The patch suggests usage of latency as throughput values in such cases.

Diff Detail

Event Timeline

avt77 created this revision.Jun 7 2017, 6:55 AM
RKSimon added inline comments.Jul 23 2017, 3:40 AM
lib/CodeGen/TargetSchedule.cpp
355

Aren't this change (and its equivalent in the next function) separate patches that need to go in first?

lib/Target/X86/X86ScheduleBtVer2.td
345

This change to the btver2 model is a separate patch as well

RKSimon edited edge metadata.Jul 31 2017, 5:43 AM

rebase?

avt77 added a comment.Aug 4 2017, 3:29 AM

I'm not sure we need rebase this patch because 2 pre-patches do almost everything I'd like to see here. There is only one last thing: a possibilty to return latency as value of throughput if we don't have any sched model or don't have ResourceCycles in the existing model. But now I think that programmer can do this functionality by himself (if s/he needs it). Am I right? I'm going to abandon this review. OK?

avt77 abandoned this revision.Aug 4 2017, 3:48 AM

There were 2 commits covering this patch