[AMDGPU] Avoid constant bus limitation on V_BFE GISel pattern
authorpvanhout <pierre.vanhoutryve@amd.com>
Wed, 15 Mar 2023 12:28:33 +0000 (13:28 +0100)
committerpvanhout <pierre.vanhoutryve@amd.com>
Wed, 15 Mar 2023 14:01:33 +0000 (15:01 +0100)
commit723a53caaf93ff47d3a74324ace1ab05de994c12
tree84f8da22bdc9d2782ab7e2b74aadae338192789f
parent93b89bee471f58d798cba42d21201e154778846a
[AMDGPU] Avoid constant bus limitation on V_BFE GISel pattern

For D141247 - if that pattern was used by GISel it could cause constant bus limitation failures.
Just use inline immediates instead of S_MOV to avoid the issue.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D146131
llvm/lib/Target/AMDGPU/VOP3Instructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/v_bfe_i32.ll [new file with mode: 0644]