Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

backport "[InstCombine] Transform !range metadata to !nonnull when combining loads" #55

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

arielb1
Copy link

@arielb1 arielb1 commented Oct 11, 2016

cc rust-lang/rust#36920. No need to backport to beta.

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.

Patch by Ariel Ben-Yehuda!

Differential Revision: https://reviews.llvm.org/D25215

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283836 91177308-0d34-0410-b5e6-96231b3b80d8
@alexcrichton alexcrichton merged commit eff922a into rust-lang:rust-llvm-2016-07-09 Oct 11, 2016
da-x pushed a commit to da-x/llvm-srpm that referenced this pull request Jan 30, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants