[AMDGPU] Allow multiple uses of the same literal in SOP2/SOPC
authorJay Foad <jay.foad@amd.com>
Thu, 19 May 2022 14:23:10 +0000 (15:23 +0100)
committerJay Foad <jay.foad@amd.com>
Thu, 19 May 2022 15:42:20 +0000 (16:42 +0100)
commitd14f2a6359483730657b275d40822d1098e3ff51
tree0401626c1af6e8265cb9d2097e49954a58e7a192
parenta136a00eae065d48cc4872d848d452ac31768c72
[AMDGPU] Allow multiple uses of the same literal in SOP2/SOPC

AMDGPUAsmParser::validateSOPLiteral already knew about this but
SIInstrInfo::verifyInstruction did not.

Differential Revision: https://reviews.llvm.org/D125976
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/verify-duplicate-literal.mir