This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Use constant ranges for PHI nodes.
ClosedPublic

Authored by fhahn on Dec 27 2019, 8:25 AM.

Details

Summary

For PHIs with multiple incoming values, we can improve precision by
using constant ranges for integers. We can over-approximate phis
by merging the incoming values.

Diff Detail

Event Timeline

fhahn created this revision.Dec 27 2019, 8:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2019, 8:25 AM
Herald added a subscriber: hiraditya. · View Herald Transcript

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: diff.json, console-log.txt

fhahn updated this revision to Diff 239760.Jan 22 2020, 6:32 PM

rebase after isUnknownOrConstant -> isOverdefined change.

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: diff.json, console-log.txt

fhahn updated this revision to Diff 251043.Mar 18 2020, 5:13 AM

Ping. I think all required patches should have landed over the last week or so.

Rebased.

This revision is now accepted and ready to land.Mar 18 2020, 12:37 PM
This revision was automatically updated to reflect the committed changes.