diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 19:33:37 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 19:33:37 +0000 |
commit | 5e6e8c7a0a2ee0053a082453f687ae4f0e8da852 (patch) | |
tree | 244b26dcfd584ef74347f3f6fca72417dee4d5a2 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
parent | bd529fbb4a678b1a07cf769be71b1a8e41d527ec (diff) | |
download | bcm5719-llvm-5e6e8c7a0a2ee0053a082453f687ae4f0e8da852.tar.gz bcm5719-llvm-5e6e8c7a0a2ee0053a082453f687ae4f0e8da852.zip |
CodeGen: Use MachineInstr& in AntiDepBreaker API, NFC
Take parameters as MachineInstr& instead of MachineInstr* in
AntiDepBreaker API, since these are required to be non-null. No
functionality change intended. Looking toward PR26753.
llvm-svn: 262145
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index b95dffd05c4..06a88bfb4c6 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -169,7 +169,7 @@ namespace { /// Observe - Update liveness information to account for the current /// instruction, which will not be scheduled. /// - void Observe(MachineInstr *MI, unsigned Count); + void Observe(MachineInstr &MI, unsigned Count); /// finishBlock - Clean up register live-range state. /// @@ -335,7 +335,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { Scheduler.EmitSchedule(); Current = MI; CurrentCount = Count; - Scheduler.Observe(MI, CurrentCount); + Scheduler.Observe(*MI, CurrentCount); } I = MI; if (MI->isBundle()) @@ -414,7 +414,7 @@ void SchedulePostRATDList::schedule() { /// Observe - Update liveness information to account for the current /// instruction, which will not be scheduled. /// -void SchedulePostRATDList::Observe(MachineInstr *MI, unsigned Count) { +void SchedulePostRATDList::Observe(MachineInstr &MI, unsigned Count) { if (AntiDepBreak) AntiDepBreak->Observe(MI, Count, EndIndex); } |