This is an archive of the discontinued LLVM Phabricator instance.

[argprom] Assessing impact of number of arguments promoted on compiler performance
AbandonedPublic

Authored by teamiceberg on Jul 4 2020, 5:21 PM.

Details

Reviewers
jdoerfert
Summary

Our initial hypothesis is that changes to the magic value of max_elements in argumentpromotion.cpp file can
lead to changes in compiler performance. To assess such changes, we have to introduce a global variable in the argumentpromotion.h header file. Then, we supply different values for this global variable by having a command line flag (-numargspromoted) bound to this global variable via the cl::opt interface. Initial analysis of compiler performance using the built in test suite demonstrate some significant changes in compile time as well as run time.
However, we are in the process of validating if these changes are real or just noise induced by other means. More experiments and sample runs need to be run, to be sure. However, we are setting up this initial patch as a way to learn how to setup a pipeline to enable the use of global variables to simulate magic values. Also, we are designing LIT tests to ensure that we submit a patch that conforms to built-in argument promotion tests in llvm/test folder.

Diff Detail

Event Timeline

teamiceberg created this revision.Jul 4 2020, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2020, 5:21 PM

Why is there a limit in the first place?

teamiceberg abandoned this revision.Jul 13 2020, 9:57 PM

I am putting up a fresh baseline. Thanks.

teamiceberg reclaimed this revision.Jul 13 2020, 10:07 PM

reopen to test update

teamiceberg abandoned this revision.Jul 13 2020, 10:20 PM

Better to open a new revision.