Skip to content

Commit bdda1de

Browse files
committed
fixup! [AMDGPU] SIPeepholeSDWA: Disable on existing SDWA instructions
1 parent 16729b5 commit bdda1de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,11 @@ bool isConvertibleToSDWA(MachineInstr &MI,
962962
const SIInstrInfo* TII) {
963963
// Check if this is already an SDWA instruction
964964
unsigned Opc = MI.getOpcode();
965-
if (TII->isSDWA(Opc))
965+
if (TII->isSDWA(Opc)) {
966+
// FIXME: Reenable after fixing selection handling.
967+
// Cf. llvm/test/CodeGen/AMDGPU/sdwa-peephole-instr-combine-sel.ll
966968
return false;
969+
}
967970

968971
// Check if this instruction has opcode that supports SDWA
969972
if (AMDGPU::getSDWAOp(Opc) == -1)

0 commit comments

Comments
 (0)