[NFC][AMDGPU] Cleanup the SIOptimizeExecMasking pass.
authorThomas Symalla <thomas.symalla@amd.com>
Mon, 4 Jul 2022 15:23:50 +0000 (17:23 +0200)
committerThomas Symalla <thomas.symalla@amd.com>
Wed, 6 Jul 2022 09:03:03 +0000 (11:03 +0200)
commit86bd7e2065c91d803905009e6148518bc4bdd101
treeec80023e2e94b5e605344d963443ed57df3c4008
parentbb84e5eeffd156a6cb1cea905822376ab3d475b3
[NFC][AMDGPU] Cleanup the SIOptimizeExecMasking pass.

This patch removes a bit of code duplication and
moves the v_cmpx optimization out of the
runOnMachineFunction pass.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D129086
llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.h