This is an archive of the discontinued LLVM Phabricator instance.

[MemCpyOpt] Only replace memcpy with bitcast if address spaces match
ClosedPublic

Authored by jprice on Apr 1 2017, 8:01 AM.

Details

Reviewers
escha
arsenm
Summary

Without this check, invalid bitcast instructions that change the address space are generated for the added test.

Similar to D30902 by @escha, just in a different MemCpyOpt optimisation.

Event Timeline

jprice created this revision.Apr 1 2017, 8:01 AM
arsenm accepted this revision.Apr 4 2017, 11:22 AM

LGTM

This revision is now accepted and ready to land.Apr 4 2017, 11:22 AM
jprice added a comment.Apr 4 2017, 1:11 PM

Thanks for the review! Would you be able to commit this on my behalf?

arsenm closed this revision.Apr 10 2017, 12:13 PM

r299866