This is an archive of the discontinued LLVM Phabricator instance.

[SampleFDO] Allow forward compatibility when adding a new section for extbinary format.
ClosedPublic

Authored by wmi on Sep 7 2021, 3:25 PM.

Details

Summary

Currently when we add a new section in the profile format and generate a profile containing the new section. Older compiler which reads the new profile will issue an error. The forward incompatibility can cause unnecessary churn when extending the profile. This patch removes the incompatibility when adding a new section for extbinary format.

Diff Detail