This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Remove computeLoadConstantCompareExitLimit() (NFCI)
ClosedPublic

Authored by nikic on Oct 22 2021, 1:12 PM.

Details

Summary

The functionality of this method is already covered by computeExitCountExhaustively() in a more general fashion. It was added at a time when exhaustive exit count calculation did not support constant folding loads yet. I double checked that dropping this code causes no binary changes in test-suite.

Diff Detail

Event Timeline

nikic created this revision.Oct 22 2021, 1:12 PM
nikic requested review of this revision.Oct 22 2021, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2021, 1:12 PM
reames accepted this revision.Oct 22 2021, 4:17 PM

LGTM, and thanks for the cleanup. Less complicated code is always good.

This revision is now accepted and ready to land.Oct 22 2021, 4:17 PM
This revision was landed with ongoing or failed builds.Oct 23 2021, 6:34 AM
This revision was automatically updated to reflect the committed changes.