File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ class PeepholeOptimizer : private MachineFunction::Delegate {
504504
505505 // / Check whether \p MI is understood by the register coalescer
506506 // / but may require some rewriting.
507- bool isCoalescableCopy (const MachineInstr &MI) {
507+ static bool isCoalescableCopy (const MachineInstr &MI) {
508508 // SubregToRegs are not interesting, because they are already register
509509 // coalescer friendly.
510510 return MI.isCopy () ||
@@ -514,7 +514,7 @@ class PeepholeOptimizer : private MachineFunction::Delegate {
514514
515515 // / Check whether \p MI is a copy like instruction that is
516516 // / not recognized by the register coalescer.
517- bool isUncoalescableCopy (const MachineInstr &MI) {
517+ static bool isUncoalescableCopy (const MachineInstr &MI) {
518518 return MI.isBitcast () || (!DisableAdvCopyOpt && (MI.isRegSequenceLike () ||
519519 MI.isInsertSubregLike () ||
520520 MI.isExtractSubregLike ()));
You can’t perform that action at this time.
0 commit comments