This is an archive of the discontinued LLVM Phabricator instance.

InferAddressSpaces: Infer for just GEPs
ClosedPublic

Authored by arsenm on Apr 21 2017, 1:33 PM.

Details

Reviewers
jlebar
Summary

Fixes leaving intermediate flat addressing computations
where a GEP instruction's source is a constant expression.

Still leaves behind a trivial addrspacecast + gep pair that
instcombine is able to handle, which ideally could be folded
here directly.

Diff Detail

Event Timeline

arsenm created this revision.Apr 21 2017, 1:33 PM
jlebar accepted this revision.Apr 21 2017, 1:46 PM
jlebar edited the summary of this revision. (Show Details)
jlebar added inline comments.
lib/Transforms/Scalar/InferAddressSpaces.cpp
301

Seems like we should update this comment?

This revision is now accepted and ready to land.Apr 21 2017, 1:48 PM
arsenm closed this revision.Apr 21 2017, 2:48 PM

r301044