This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec] Don't specialize functions with NoDuplicate instructions.
ClosedPublic

Authored by SjoerdMeijer on Jun 17 2021, 7:06 AM.

Details

Summary

getSpecializationCost was returning INT_MAX for a case when specialisation shouldn't happen, but this wasn't properly checked with specialisation was forced.

Diff Detail

Event Timeline

SjoerdMeijer created this revision.Jun 17 2021, 7:06 AM
SjoerdMeijer requested review of this revision.Jun 17 2021, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2021, 7:06 AM
This revision is now accepted and ready to land.Jun 17 2021, 7:00 PM