This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare] Make -addr-sink-using-gep work with address spaces.
ClosedPublic

Authored by efriedma on Feb 17 2017, 1:16 PM.

Details

Summary

When we construct addressing modes, we use isNoopAddrSpaceCast to ignore addrspacecast instructions, so pointers can have a mismatched address space. Make sure we insert the correct addrspacecast when we sink the address computation.

Diff Detail

Repository
rL LLVM