This is an archive of the discontinued LLVM Phabricator instance.

[MLGO][LoopUnroll] Add logging mechanism for loop partial unroll
Needs ReviewPublic

Authored by eopXD on Nov 19 2022, 5:49 PM.

Details

Summary

This is the first part of adding MLGO into LoopUnrollPass. We start
by observing the decision to loop partial unroll.

Loop properties are extracted as input features and the partial unroll
count is the decision. An object MLGOAnalysis will be created in the
first time the LoopPass LoopUnrollPass is triggered, logs will
accumulate and all would be flushed at the end of compilation, in the
dtor of LoopUnrollPass.

Depends on D138368, which introduces LoopPropertiesAnalysis.

Diff Detail

Event Timeline

eopXD created this revision.Nov 19 2022, 5:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2022, 5:49 PM
eopXD requested review of this revision.Nov 19 2022, 5:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2022, 5:49 PM
eopXD edited the summary of this revision. (Show Details)Nov 19 2022, 5:51 PM
eopXD updated this revision to Diff 476714.Nov 19 2022, 5:52 PM

Bump CI.

eopXD edited the summary of this revision. (Show Details)Nov 19 2022, 6:22 PM
eopXD edited the summary of this revision. (Show Details)