mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
R600/SI: Allow commuting with src2_modifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -718,11 +718,6 @@ MachineInstr *SIInstrInfo::commuteInstruction(MachineInstr *MI,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// TODO: Is there any reason to commute with src2 modifiers?
|
||||
// TODO: Should be able to commute with output modifiers just fine.
|
||||
if (hasModifiersSet(*MI, AMDGPU::OpName::src2_modifiers))
|
||||
return nullptr;
|
||||
|
||||
// Be sure to copy the source modifiers to the right place.
|
||||
if (MachineOperand *Src0Mods
|
||||
= getNamedOperand(*MI, AMDGPU::OpName::src0_modifiers)) {
|
||||
|
Reference in New Issue
Block a user