[llvm-branch-commits] [llvm] PeepholeOpt: Fix looking for def of current copy to coalesce (PR #125533)

Quentin Colombet via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 3 21:42:33 PST 2025


================
@@ -1002,17 +1003,15 @@ bool PeepholeOptimizer::optimizeCondBranch(MachineInstr &MI) {
 /// share the same register file as \p Reg and \p SubReg. The client should
 /// then be capable to rewrite all intermediate PHIs to get the next source.
 /// \return False if no alternative sources are available. True otherwise.
-bool PeepholeOptimizer::findNextSource(RegSubRegPair RegSubReg,
----------------
qcolombet wrote:

Could you update the comment with the documentation for the additional parameters.

https://github.com/llvm/llvm-project/pull/125533


More information about the llvm-branch-commits mailing list