This is an archive of the discontinued LLVM Phabricator instance.

Fix a not debug invariant issue in GlobalOpt/GlobalStatus
AbandonedPublic

Authored by markus on Jun 21 2021, 3:18 AM.

Details

Reviewers
dblaikie
jmorse
Summary

Bug originally reported in https://bugs.llvm.org/show_bug.cgi?id=44880

Analysis in analyzeGlobalAux aborts if the value is no longer of pointer type. This check for pointer type disregards if there are actually any SSA graph uses or not and thus opens up for a debug use via metadata to affect the outcome fo the analysis and eventually if transformation is applied or not.

This patch addresses that by only aborting analysis if there are any undesirable SSA graph uses.

Diff Detail

Event Timeline

markus created this revision.Jun 21 2021, 3:18 AM
markus requested review of this revision.Jun 21 2021, 3:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2021, 3:18 AM
markus edited the summary of this revision. (Show Details)Jun 21 2021, 3:21 AM
ormris removed a subscriber: ormris.Jun 23 2021, 9:42 AM
markus abandoned this revision.Feb 2 2022, 12:27 AM

This fix and underlying issue has been superseded and resolved by of https://github.com/llvm/llvm-project/commit/236fbf571dc6cebcb81ac5187a170c8de6d5bc0e