[AMDGPU] Assume getDefIgnoringCopies will succeed. NFC.
authorJay Foad <jay.foad@amd.com>
Wed, 19 Oct 2022 09:32:08 +0000 (10:32 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 19 Oct 2022 10:10:00 +0000 (11:10 +0100)
commitea09a426a94cdd1cdf96cf0d22f16f566aee3916
treee89bbf75dc42c70eb5eadfc0884a14d1cb329f75
parent3883615906771480cc47e724bb5908287ab74736
[AMDGPU] Assume getDefIgnoringCopies will succeed. NFC.

getDefIgnoringCopies and getSrcRegIgnoringCopies should not fail on
valid MIR, so don't bother to check for failure.

Differential Revision: https://reviews.llvm.org/D136238
llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp