Skip to content

Commit 9b4a3fd

Browse files
committed
Restore isRenamable in isBackwardPropagatableCopy
1 parent d6c3347 commit 9b4a3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineCopyPropagation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ static bool isBackwardPropagatableCopy(const DestSourcePair &CopyOperands,
983983
if (MRI.isReserved(Def) || MRI.isReserved(Src))
984984
return false;
985985

986-
return CopyOperands.Source->isKill();
986+
return CopyOperands.Source->isRenamable() && CopyOperands.Source->isKill();
987987
}
988988

989989
void MachineCopyPropagation::propagateDefs(MachineInstr &MI) {

0 commit comments

Comments
 (0)