This is an archive of the discontinued LLVM Phabricator instance.

SROA: Remove pointer from visited along with instruction
ClosedPublic

Authored by rampitec on Jun 1 2020, 2:55 PM.

Details

Summary

If an instruction is erased we also need to remove it from
Visited set. There is a very small chance that an another
newly created instruction will be created with the same
pointer value in place of an erased one.

Diff Detail

Event Timeline

rampitec created this revision.Jun 1 2020, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2020, 2:55 PM
arsenm added a comment.Jun 5 2020, 6:12 AM

Is this a new problem from the recent patches or was this already broken?

Is this a new problem from the recent patches or was this already broken?

It's been there for two instances and I have added two more recently. It seems to not really happen or at least not too often, but anyway there is a possibility.

arsenm accepted this revision.Jun 5 2020, 12:05 PM
This revision is now accepted and ready to land.Jun 5 2020, 12:05 PM
This revision was automatically updated to reflect the committed changes.