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 {
504
504
505
505
// / Check whether \p MI is understood by the register coalescer
506
506
// / but may require some rewriting.
507
- bool isCoalescableCopy (const MachineInstr &MI) {
507
+ static bool isCoalescableCopy (const MachineInstr &MI) {
508
508
// SubregToRegs are not interesting, because they are already register
509
509
// coalescer friendly.
510
510
return MI.isCopy () ||
@@ -514,7 +514,7 @@ class PeepholeOptimizer : private MachineFunction::Delegate {
514
514
515
515
// / Check whether \p MI is a copy like instruction that is
516
516
// / not recognized by the register coalescer.
517
- bool isUncoalescableCopy (const MachineInstr &MI) {
517
+ static bool isUncoalescableCopy (const MachineInstr &MI) {
518
518
return MI.isBitcast () || (!DisableAdvCopyOpt && (MI.isRegSequenceLike () ||
519
519
MI.isInsertSubregLike () ||
520
520
MI.isExtractSubregLike ()));
You can’t perform that action at this time.
0 commit comments