From: Jay Foad Date: Wed, 9 Feb 2022 17:05:19 +0000 (+0000) Subject: [AMDGPU] Remove dead code from shrinkScalarLogicOp X-Git-Tag: upstream/15.0.7~17176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=476bb2d94e7158557bafdee5348fb8e38f8e0bb4;p=platform%2Fupstream%2Fllvm.git [AMDGPU] Remove dead code from shrinkScalarLogicOp It looks like this code has been dead since shrinkScalarLogicOp was introduced in svn r348601. --- diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp index c8f1daf..a15686c 100644 --- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp +++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp @@ -354,12 +354,6 @@ static bool shrinkScalarLogicOp(const GCNSubtarget &ST, llvm_unreachable("unexpected opcode"); } - if ((Opc == AMDGPU::S_ANDN2_B32 || Opc == AMDGPU::S_ORN2_B32) && - SrcImm == Src0) { - if (!TII->commuteInstruction(MI, false, 1, 2)) - NewImm = 0; - } - if (NewImm != 0) { if (Dest->getReg().isVirtual() && SrcReg->isReg()) { MRI.setRegAllocationHint(Dest->getReg(), 0, SrcReg->getReg());