This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Don't always set MayIncludeUndef as true when calling markConstant
Needs ReviewPublic

Authored by StephenFan on Jun 25 2023, 12:23 AM.

Details

Reviewers
nikic
Summary

In markConstant, MayIncludeUndef makes a difference when the Constant is
ConstantInt. Currently we hard code MayIncludeUndef as true, but in fact
only when there is at least one operand has
constantrange_including_undef, the simplifed result can
MayIncludingUndef.

Diff Detail

Event Timeline

StephenFan created this revision.Jun 25 2023, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 12:23 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.Jun 25 2023, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 12:23 AM