This is an archive of the discontinued LLVM Phabricator instance.

[RS4GC] Lazily set changed flag when folding single entry phis
ClosedPublic

Authored by yrouban on Dec 25 2020, 2:58 AM.

Details

Summary

The function FoldSingleEntryPHINodes() is changed to return if it has changed IR or not. This return value is used by RS4GC to set the MadeChange flag respectively.
The change is simple. No test is needed.

Diff Detail

Event Timeline

yrouban created this revision.Dec 25 2020, 2:58 AM
yrouban requested review of this revision.Dec 25 2020, 2:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 25 2020, 2:58 AM
reames accepted this revision.Dec 26 2020, 11:14 AM

LGTM

This revision is now accepted and ready to land.Dec 26 2020, 11:14 AM