[llvm] bb23b5c - AMDGPU/GlobalISel: Merge identical select cases
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 08:42:23 PDT 2020
Author: Matt Arsenault
Date: 2020-07-28T11:42:17-04:00
New Revision: bb23b5cfe0c4391576541ffe8a4f966155d2b608
URL: https://github.com/llvm/llvm-project/commit/bb23b5cfe0c4391576541ffe8a4f966155d2b608
DIFF: https://github.com/llvm/llvm-project/commit/bb23b5cfe0c4391576541ffe8a4f966155d2b608.diff
LOG: AMDGPU/GlobalISel: Merge identical select cases
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 777c8c6c2ee6..ff83e1ef404c 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -2846,6 +2846,8 @@ bool AMDGPUInstructionSelector::select(MachineInstr &I) {
case TargetOpcode::G_ATOMICRMW_UMIN:
case TargetOpcode::G_ATOMICRMW_UMAX:
case TargetOpcode::G_ATOMICRMW_FADD:
+ case AMDGPU::G_AMDGPU_ATOMIC_INC:
+ case AMDGPU::G_AMDGPU_ATOMIC_DEC:
return selectG_LOAD_ATOMICRMW(I);
case AMDGPU::G_AMDGPU_ATOMIC_CMPXCHG:
return selectG_AMDGPU_ATOMIC_CMPXCHG(I);
@@ -2875,10 +2877,6 @@ bool AMDGPUInstructionSelector::select(MachineInstr &I) {
return selectG_INSERT_VECTOR_ELT(I);
case TargetOpcode::G_SHUFFLE_VECTOR:
return selectG_SHUFFLE_VECTOR(I);
- case AMDGPU::G_AMDGPU_ATOMIC_INC:
- case AMDGPU::G_AMDGPU_ATOMIC_DEC:
- initM0(I);
- return selectImpl(I, *CoverageInfo);
case AMDGPU::G_AMDGPU_INTRIN_IMAGE_LOAD:
case AMDGPU::G_AMDGPU_INTRIN_IMAGE_STORE: {
const AMDGPU::ImageDimIntrinsicInfo *Intr
More information about the llvm-commits
mailing list