This is an archive of the discontinued LLVM Phabricator instance.

[CVP] processCallSite returns wrong status
ClosedPublic

Authored by ebrevnov on Apr 15 2021, 2:31 AM.

Details

Summary

Recently processMinMaxIntrinsic has been added and we started to observe a number of analysis get invalidated after CVP. The problem is CVP conservatively returns 'true' even if there were no modifications to IR. I found one more place besides processMinMaxIntrinsic which has the same problem. I think processMinMaxIntrinsic and similar should better have boolean return status to prevent similar issue reappear in future.

Diff Detail

Event Timeline

ebrevnov created this revision.Apr 15 2021, 2:31 AM
ebrevnov requested review of this revision.Apr 15 2021, 2:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2021, 2:31 AM
ebrevnov edited the summary of this revision. (Show Details)Apr 15 2021, 2:34 AM
ebrevnov added a reviewer: lebedev.ri.
lebedev.ri accepted this revision.Apr 15 2021, 2:36 AM

Claiming that changes were done where none were done is a bug too?

This revision is now accepted and ready to land.Apr 15 2021, 2:36 AM
ebrevnov edited the summary of this revision. (Show Details)Apr 15 2021, 2:39 AM

Claiming that changes were done where none were done is a bug too?

It's not a functional bug. It's always legal to invalidate results of analysis but has negative impact on compile time.
PS: not sure if that answers your question though....