Skip to content

Commit 0417e7f

Browse files
committed
Adjust comment
1 parent 5133ec1 commit 0417e7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/CodeGen/PeepholeOptimizer.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,10 @@ bool PeepholeOptimizer::optimizeCondBranch(MachineInstr &MI) {
992992
return TII->optimizeCondBranch(MI);
993993
}
994994

995-
/// Try to find the next source that share the same register file
996-
/// for the value defined by \p Reg and \p SubReg.
995+
/// Try to find a better source value that shares the same register file to
996+
/// replace \p RegSubReg in an instruction like
997+
/// `DefRC.DefSubReg = COPY RegSubReg`
998+
///
997999
/// When true is returned, the \p RewriteMap can be used by the client to
9981000
/// retrieve all Def -> Use along the way up to the next source. Any found
9991001
/// Use that is not itself a key for another entry, is the next source to

0 commit comments

Comments
 (0)