[llvm] 476bb2d - [AMDGPU] Remove dead code from shrinkScalarLogicOp
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 9 09:07:34 PST 2022
Author: Jay Foad
Date: 2022-02-09T17:07:12Z
New Revision: 476bb2d94e7158557bafdee5348fb8e38f8e0bb4
URL: https://github.com/llvm/llvm-project/commit/476bb2d94e7158557bafdee5348fb8e38f8e0bb4
DIFF: https://github.com/llvm/llvm-project/commit/476bb2d94e7158557bafdee5348fb8e38f8e0bb4.diff
LOG: [AMDGPU] Remove dead code from shrinkScalarLogicOp
It looks like this code has been dead since shrinkScalarLogicOp
was introduced in svn r348601.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
index c8f1daf26de9..a15686c637cd 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());
More information about the llvm-commits
mailing list