[AMDGPU] NFC. Assert that mask is full with VOPC DPP
authorJoe Nash <Joseph.Nash@amd.com>
Tue, 19 Jul 2022 16:49:15 +0000 (12:49 -0400)
committerJoe Nash <Joseph.Nash@amd.com>
Wed, 20 Jul 2022 17:23:03 +0000 (13:23 -0400)
commitdc850fbf3ba9e3fa6f805c3e58dcb87619ad4fdf
tree799485120340c2b4abeaec5cfbb3d98f8f450982
parentb32e600edd4e80f74fb8e6a199b9a4d47c6c8a05
[AMDGPU] NFC. Assert that mask is full with VOPC DPP

VOPC DPP should not be formed when the row_mask and bank_mask are not
0xf (full) because the resulting VOP DPP would have different semantics
than the MOV DPP followed by VOP. Existing checks in GCNDPPCombine cover
this case but for different reasons, so assert the property for
future-proofing.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D130101
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
llvm/test/CodeGen/AMDGPU/vopc_dpp.mir