This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove RISCVMergeBaseOffsetOpt from the -O0 pass pipeline.
ClosedPublic

Authored by craig.topper on Dec 2 2020, 2:24 PM.

Details

Summary

Internally the pass skips any function with the optnone attribute. But that still requires checking each function. If the opt level is set to None we might as well just skip putting in the pipeline at all. This what is already done for many of the passes added by TargetPassConfig.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 2 2020, 2:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2020, 2:24 PM
craig.topper requested review of this revision.Dec 2 2020, 2:24 PM
lenary accepted this revision.Dec 3 2020, 4:48 AM

LGTM

This revision is now accepted and ready to land.Dec 3 2020, 4:48 AM