SLSR: Pass address space to isLegalAddressingMode
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 11 Jun 2015 16:13:39 +0000 (16:13 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 11 Jun 2015 16:13:39 +0000 (16:13 +0000)
commitb1d220c21a80d8d930d8da6448968baead7845bf
tree4c67dbd8ea7228a0224ab251f53e9ece43b9f513
parent564ff6478c3eb44c8d80e275d4da57691f715e29
SLSR: Pass address space to isLegalAddressingMode

This only updates one of the uses. The other is used in cases
that may never touch memory, so I'm not sure why this is even
calling it. Perhaps there should be a new, similar hook for such
cases or pass -1 for unknown address space.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239540 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
test/Transforms/StraightLineStrengthReduce/R600/lit.local.cfg [new file with mode: 0644]
test/Transforms/StraightLineStrengthReduce/R600/reassociate-geps-and-slsr-addrspace.ll [new file with mode: 0644]