]> granicus.if.org Git - llvm/commit
Merging r293542:
authorHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 22:00:37 +0000 (22:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 22:00:37 +0000 (22:00 +0000)
commit2a46e93aedd2d4f2b3e5049e45e3a358cab1577f
tree7e1083bb5432bddb18e821cd2fe291e33df4f04e
parent1b0199bebfd5dddd9d776b4e08f2a8859fcbd4e9
Merging r293542:
------------------------------------------------------------------------
r293542 | arsenm | 2017-01-30 11:50:17 -0800 (Mon, 30 Jan 2017) | 7 lines

LSR: Don't drop address space when type doesn't match

For targets with different addressing modes in each address space,
if this is dropped querying isLegalAddressingMode later with this
will give a nonsense result, breaking the isLegalUse assertions.

This is a candidate for the 4.0 release branch.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@293819 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/AMDGPU/preserve-addrspace-assert.ll [new file with mode: 0644]