This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Only handle unknown lattice values in resolvedUndefsIn()
ClosedPublic

Authored by nikic on Jun 21 2022, 1:45 AM.

Details

Summary

This is a minor refinement of resolvedUndefsIn(), mostly for clarity. If the value of an instruction is undef, then that's already a legal final result -- we can safely rauw such an instruction with undef. We only need to mark unknown values as overdefined, as that's the result we get for an instruction that has not been processed because it has an undef operand.

Diff Detail

Event Timeline

nikic created this revision.Jun 21 2022, 1:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2022, 1:45 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.Jun 21 2022, 1:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2022, 1:45 AM
nikic updated this revision to Diff 438955.Jun 22 2022, 2:48 AM
nikic edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jun 30 2022, 9:59 AM
This revision was landed with ongoing or failed builds.Jul 1 2022, 12:14 AM
This revision was automatically updated to reflect the committed changes.