Skip to content

Commit fa17b74

Browse files
committed
Update comment
1 parent d30269f commit fa17b74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,10 +1526,11 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
15261526

15271527
// In a situation like the following:
15281528
//
1529-
// 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
1529+
// undef %2.subreg:reg = INST %1:reg ; DefMI (rematerializable),
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)