commit | 3082da881d92fbc05a3af7601635dacf3661dd5a | [log] [tgz] |
---|---|---|
author | Matt Arsenault <Matthew.Arsenault@amd.com> | Wed Apr 27 00:32:09 2016 +0000 |
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | Wed Apr 27 00:32:09 2016 +0000 |
tree | c9f7d271353801505e612de0a69088eba2ba39db | |
parent | e69ab0b5ff9bb07dde3f30c0fb1eca00a4c86fea [diff] |
SLSR: Use UnknownAddressSpace instead of 0 for pure arithmetic. In the case where isLegalAddressingMode is used for cases not related to addressing modes, such as pure adds and muls, it should not be using address space 0. LSR already passes -1 as the address space in these cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267645 91177308-0d34-0410-b5e6-96231b3b80d8