This is an archive of the discontinued LLVM Phabricator instance.

[BasicAA] Add simple depth limit to avoid stack overflow (PR49151)
ClosedPublic

Authored by nikic on Feb 18 2021, 2:20 PM.

Details

Summary

This is a simpler variant on D96647. It just adds a straightforward depth limit with a high cutoff, without introducing complex logic for BatchAA consistency. It accepts that we may cache a sub-optimal result if the depth limit is hit.

Eventually this should be more fully addressed by D96647 or similar, but in the meantime this avoids stack overflows in a cheap way.

Diff Detail

Event Timeline

nikic created this revision.Feb 18 2021, 2:20 PM
nikic requested review of this revision.Feb 18 2021, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 2:20 PM
asbirlea accepted this revision.Feb 18 2021, 2:52 PM

sgtm.

This revision is now accepted and ready to land.Feb 18 2021, 2:52 PM