[NFC][AMDGPULowerModuleLDSPass] Cleanup of getTableLookupKernelIndex
authorJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Wed, 19 Jul 2023 07:37:29 +0000 (09:37 +0200)
committerJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Wed, 19 Jul 2023 07:54:53 +0000 (09:54 +0200)
commitfcbafc066cc56e7dbb61929962d942288432242d
treee55515865a13d6e9de6d8e9cc6f113f955f7cfcd
parentec3cbe92c009297e093552c360d57b023a422255
[NFC][AMDGPULowerModuleLDSPass] Cleanup of getTableLookupKernelIndex

* Do a single lookup when querying the map
* Use shorter versions of the LLVM API

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D155588
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp