From ad8131bb03d0abd9e0586b9fa91d45cbf90ca83e Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Mon, 26 Oct 2020 11:53:40 -0700 Subject: [PATCH] [AMDGPU] Fix VC warning about singed/unsigned comparison. NFC. This is the warning reported in https://reviews.llvm.org/D89599 --- llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp index 29cb100..2619cd3 100644 --- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp +++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp @@ -548,7 +548,7 @@ static MachineInstr* matchSwap(MachineInstr &MovT, MachineRegisterInfo &MRI, if (I->hasRegisterImplicitUseOperand(AMDGPU::M0)) continue; - if (Size > 1 && (I->getNumImplicitOperands() > (I->isCopy() ? 0 : 1))) + if (Size > 1 && (I->getNumImplicitOperands() > (I->isCopy() ? 0U : 1U))) continue; MovX = &*I; -- 2.7.4