aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CodeMetrics.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-05-08 15:53:41 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2020-05-09 16:00:08 -0400
commitbeda9d04c284ab68073c6b7d5a858ee609b5311c (patch)
tree4df81cf1ad7aade1a322f9850520763cc0ea0dc6 /llvm/lib/Analysis/CodeMetrics.cpp
parentf8b09f7b52030fcb078c1f99666256d3927a6eea (diff)
downloadllvm-beda9d04c284ab68073c6b7d5a858ee609b5311c.zip
llvm-beda9d04c284ab68073c6b7d5a858ee609b5311c.tar.gz
llvm-beda9d04c284ab68073c6b7d5a858ee609b5311c.tar.bz2
AMDGPU: Skip GetUnderlyingObject check in pointsToConstantMemory
Check the address space first before searching for the object definition to save compile time. As an added bonus, this will now treat casts to constant addrspace as constant. We also seemed to be missing targeted tests for this, so add a few missing other cases too.
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions