This is an archive of the discontinued LLVM Phabricator instance.

[AssumptionCache] Track GlobalValues as affected values.
AbandonedPublic

Authored by tylanphear on Sep 1 2023, 3:40 PM.

Details

Summary

Fixes a corner case of the analysis: previously GlobalValues could be
affected by assumptions, but were not tracked within AffectedValues.
This patch allows assumptions which affect a given GlobalValue to be
looked up via assumptionsFor().

A small update to llvm/test/Analysis/ScalarEvolution/ranges.ll was
necessary due to knowledge about a global value now being propagated
from AssumptionCache -> ValueTracking -> ScalarEvolution.

Diff Detail

Event Timeline

tylanphear created this revision.Sep 1 2023, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2023, 3:40 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
tylanphear requested review of this revision.Sep 1 2023, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2023, 3:40 PM
This revision is now accepted and ready to land.Sep 1 2023, 3:55 PM

I do not have commit access, would someone who does please land this for me? Thanks!

Friendly ping -- @jdoerfert perhaps you could land this, since you approved? I would greatly appreciate it. Thanks!

tylanphear abandoned this revision.Sep 5 2023, 5:30 PM

Actually, it seems I should submit this as PR on GitHub, now that the process has been changed. Closing this revision in favor of https://github.com/llvm/llvm-project/pull/65425.