Skip to content

Commit 912ab02

Browse files
committed
Update comment
1 parent d30269f commit 912ab02

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,9 +1527,10 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
15271527
// In a situation like the following:
15281528
//
15291529
// undef %2.subreg:reg = INST %1:reg ; DefMI (rematerializable),
1530-
// ; DefSubIdx = subreg
1531-
// %3:reg = COPY %2 ; SrcIdx = DstIdx = 0
1532-
// .... = SOMEINSTR %3:reg, %2
1530+
// ; Defines only some of lanes,
1531+
// ; so DefSubIdx = NewIdx = subreg
1532+
// %3:reg = COPY %2 ; Copy full reg
1533+
// .... = SOMEINSTR %3:reg ; Use full reg
15331534
//
15341535
// there are no subranges for %3 so after rematerialization we need
15351536
// to explicitly create them. Undefined subranges are removed later on.

0 commit comments

Comments
 (0)