Skip to content

Commit 0ef39a8

Browse files
authored
MachineCSE: Remove check for subreg on a def operand (#124095)
There are no subregister defs in SSA.
1 parent e06b703 commit 0ef39a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/CodeGen/MachineCSE.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ bool MachineCSEImpl::PerformTrivialCopyPropagation(MachineInstr *MI,
187187
Register SrcReg = DefMI->getOperand(1).getReg();
188188
if (!SrcReg.isVirtual())
189189
continue;
190-
if (DefMI->getOperand(0).getSubReg())
191-
continue;
192190
// FIXME: We should trivially coalesce subregister copies to expose CSE
193191
// opportunities on instructions with truncated operands (see
194192
// cse-add-with-overflow.ll). This can be done here as follows:

0 commit comments

Comments
 (0)