commit | 0ee8e563c9b4c77183c4a3b5fbbbb0ed71d3d5bb | [log] [tgz] |
---|---|---|
author | Eli Friedman <efriedma@codeaurora.org> | Fri Feb 24 20:51:36 2017 +0000 |
committer | Eli Friedman <efriedma@codeaurora.org> | Fri Feb 24 20:51:36 2017 +0000 |
tree | 2a4e4f06e449596bed8a645fe9e83130842a5e0a | |
parent | 3afc883be9a7a596d53c62ca8de868c681acfd18 [diff] |
[CodeGenPrepare] Make -addr-sink-using-gep work with address spaces. When we construct addressing modes, we use isNoopAddrSpaceCast to ignore addrspacecast instructions. Make sure we insert the correct addrspacecast when we reconstruct the addressing mode. Differential Revision: https://reviews.llvm.org/D30114 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296167 91177308-0d34-0410-b5e6-96231b3b80d8