diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-09-05 23:40:14 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-09-05 23:40:14 +0000 |
commit | 59ff77ee38c6902ffa4b4bc71e80ab01032babec (patch) | |
tree | 0fb3b583d9e5cfa82d24ecde9bda472db42e787c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9dd453ce8d6b0d0970ed11a93d5180f74f620078 (diff) | |
download | llvm-59ff77ee38c6902ffa4b4bc71e80ab01032babec.zip llvm-59ff77ee38c6902ffa4b4bc71e80ab01032babec.tar.gz llvm-59ff77ee38c6902ffa4b4bc71e80ab01032babec.tar.bz2 |
AMDGPU: Fix emitting multiple stack loads for stack passed workitems
The same stack is loaded for each workitem ID, and each use. Nothing
prevents you from creating multiple fixed stack objects with the same
offsets, so this was creating a load for each unique frame index,
despite them being the same offset. Re-use the same frame index so the
loads are CSEable.
llvm-svn: 371148
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions