Use same MSSA clobbering checks as in the AMDGPUAnnotateUniformValues.
Kernel argument promotion needs exactly the same information so factor
out utility function isClobberedInFunction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/Utils/AMDGPUMemoryUtils.cpp | ||
---|---|---|
34 | This is usefull routine outside of the eclosing function, I would move it on the file scope and replace Load argument with its pointer, I don't see other uses of Load there. |
llvm/lib/Target/AMDGPU/Utils/AMDGPUMemoryUtils.cpp | ||
---|---|---|
29 | Nit: move the debug output back to isClobberedInFunction |
Nit: move the debug output back to isClobberedInFunction