This is an archive of the discontinued LLVM Phabricator instance.

[Inliner] Don't inline if target-cpu and target-features attribute strings don't match exactly
ClosedPublic

Authored by ahatanak on Apr 10 2015, 2:59 PM.

Details

Summary

This patch makes changes to InlineCostAnalysis to prevent inlining functions that don't have exactly the same target-cpu and target-features attribute strings as the caller function.

This is a temporary solution until we come up with a better design for attributes (see this link: http://reviews.llvm.org/D7802).

Diff Detail

Repository
rL LLVM

Event Timeline

ahatanak updated this revision to Diff 23627.Apr 10 2015, 2:59 PM
ahatanak retitled this revision from to [Inliner] Don't inline if target-cpu and target-features attribute strings don't match exactly .
ahatanak updated this object.
ahatanak edited the test plan for this revision. (Show Details)
ahatanak added a subscriber: Unknown Object (MLST).
chandlerc accepted this revision.Apr 10 2015, 6:00 PM
chandlerc added a reviewer: chandlerc.
chandlerc added a subscriber: chandlerc.

Thanks, this looks like a great temporary fix LTO folks can go back to making progress.

This revision is now accepted and ready to land.Apr 10 2015, 6:00 PM
This revision was automatically updated to reflect the committed changes.