This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Guaranteed not to be undef if has dereferenceable attribute
ClosedPublic

Authored by StephenFan on Apr 23 2023, 10:02 PM.

Details

Summary

As LangRef says, "dereferenceable<n> implies noundef".
isGuaranteedNotToBeUndefOrPoison should return true if the parameter
has dereferenceable attribute.

Diff Detail

Event Timeline

StephenFan created this revision.Apr 23 2023, 10:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2023, 10:02 PM
StephenFan requested review of this revision.Apr 23 2023, 10:02 PM
Herald added a project: Restricted Project. · View Herald Transcript
nikic requested changes to this revision.Apr 24 2023, 2:10 AM

Can you please also handle deferenceable_or_null while here?

This revision now requires changes to proceed.Apr 24 2023, 2:10 AM

Handle dereferenceable_or_null

nikic accepted this revision.Apr 25 2023, 12:45 AM

LGTM

This revision is now accepted and ready to land.Apr 25 2023, 12:45 AM
This revision was landed with ongoing or failed builds.Apr 26 2023, 8:06 PM
This revision was automatically updated to reflect the committed changes.