This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Remove ORE argument (NFC-ish)
ClosedPublic

Authored by nikic on May 26 2023, 6:23 AM.

Details

Summary

The ORE argument threaded through ValueTracking is used only in a single, untested place. It is also essentially never passed: The only places that do so have been added very recently as part of the KnownFPClass migration, which is vanishingly unlikely to hit this code path. Remove this effectively dead argument.

(Background motivation is that I'd like to unify the Query between ValueTracking and InstSimplify, and this is one of the discrepancies.)

Diff Detail

Event Timeline

nikic created this revision.May 26 2023, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 6:23 AM
nikic requested review of this revision.May 26 2023, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 6:23 AM

No objections from me - @arsenm are you intending to use this at all?

arsenm accepted this revision.Jun 1 2023, 2:58 PM
This revision is now accepted and ready to land.Jun 1 2023, 2:58 PM
arsenm added inline comments.Jun 1 2023, 3:09 PM
llvm/lib/Analysis/ValueTracking.cpp
956–973

Seems like something that should go in the lint pass

This revision was landed with ongoing or failed builds.Jun 2 2023, 12:12 AM
This revision was automatically updated to reflect the committed changes.