Skip to content

Commit

Permalink
AMDGPU/GlobalISel: Remove manual G_FENCE selection
Browse files Browse the repository at this point in the history
The tablegen emitter now handles the immediate operand correctly, so
let the generatedd matcher works.
  • Loading branch information
arsenm committed Jan 2, 2020
1 parent 0d9f919 commit 25e7da0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
Expand Up @@ -1713,11 +1713,6 @@ bool AMDGPUInstructionSelector::select(MachineInstr &I) {
return selectG_BRCOND(I);
case TargetOpcode::G_FRAME_INDEX:
return selectG_FRAME_INDEX(I);
case TargetOpcode::G_FENCE:
// FIXME: Tablegen importer doesn't handle the imm operands correctly, and
// is checking for G_CONSTANT
I.setDesc(TII.get(AMDGPU::ATOMIC_FENCE));
return true;
case TargetOpcode::G_PTR_MASK:
return selectG_PTR_MASK(I);
default:
Expand Down

0 comments on commit 25e7da0

Please sign in to comment.