[AMDGPU] Clean up MUBUF immediate offset
authorPiotr Sobczak <Piotr.Sobczak@amd.com>
Thu, 23 Feb 2023 10:47:40 +0000 (11:47 +0100)
committerPiotr Sobczak <Piotr.Sobczak@amd.com>
Thu, 23 Feb 2023 12:29:53 +0000 (13:29 +0100)
commit51a49ec52a082eaca2c6b8b4dc1dbe1e65f0c690
tree7e1aabbad21317302f3793b95cd38a88e46e6e0e
parentd8bd179a173876a7a9ee11828b63efffe145356c
[AMDGPU] Clean up MUBUF immediate offset

D143174 lifted the artificial type restriction by promoting
offset to i32. This patch handles more cases: those involving
immediate offset in MUBUF.

Differential Revision: https://reviews.llvm.org/D144628
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/BUFInstructions.td