This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Transform !range metadata to !nonnull when combining loads
AbandonedPublic

Authored by mehdi_amini on Oct 3 2016, 4:29 PM.

Details

Reviewers
arielb1
chandlerc
Summary

When combining an integer load with !range metadata that does not include 0 to a pointer load, make sure emit !nonnull metadata on the newly-created pointer load. This prevents the !nonnull metadata from being dropped during a ptrtoint/inttoptr pair.

This fixes PR30597

Diff Detail

Repository
rL LLVM

Event Timeline

arielb1 updated this revision to Diff 73370.Oct 3 2016, 4:29 PM
arielb1 retitled this revision from to [InstCombine] Transform !range metadata to !nonnull when combining loads.
arielb1 updated this object.
arielb1 added a reviewer: chandlerc.
arielb1 set the repository for this revision to rL LLVM.
mehdi_amini commandeered this revision.Oct 3 2016, 4:34 PM
mehdi_amini added a reviewer: arielb1.
mehdi_amini added a subscriber: mehdi_amini.

You need to add llvm-commits as a subscriber from the beginning when submitting a patch on Phabricator.
Can you submit another one please? Sorry for the inconvenience.

Also it is helpful to upload patches with full context (git diff -U99999)

mehdi_amini abandoned this revision.Oct 3 2016, 4:35 PM