This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Drop unnecessary early exit for ExtractValueInst.
ClosedPublic

Authored by fhahn on Apr 17 2020, 12:14 PM.

Details

Summary

visitExtractValueInst uses mergeInValue, so it already can handle
constant ranges. Initially the early exit was using isOverdefined to
keep things as NFC during the initial move to ValueLatticeElement.
As the function already supports constant ranges, it can just use
ValueState[&I].isOverdefined.

Diff Detail

Event Timeline

fhahn created this revision.Apr 17 2020, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2020, 12:15 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
This revision is now accepted and ready to land.Apr 17 2020, 2:15 PM
fhahn updated this revision to Diff 259383.Apr 22 2020, 1:57 PM

rebased

This revision was automatically updated to reflect the committed changes.