diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:14:29 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:14:29 +0000 |
commit | be8f8c4478dee41e124650fa9d166eaf5dc6b2be (patch) | |
tree | b53b248f768f9dbaf37d7824b865b9cffd394d5f /llvm/include | |
parent | fd8cc23220d25dfe6956470da8bd63d26649c428 (diff) | |
download | bcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.tar.gz bcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.zip |
CodeGen: Update LiveIntervalAnalysis API to use MachineInstr&, NFC
These parameters aren't expected to be null, so take them by reference.
llvm-svn: 262151
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h index e6b46028f8e..d72b6c315cc 100644 --- a/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -105,7 +105,7 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs; // Calculate the spill weight to assign to a single instruction. static float getSpillWeight(bool isDef, bool isUse, const MachineBlockFrequencyInfo *MBFI, - const MachineInstr *Instr); + const MachineInstr &Instr); LiveInterval &getInterval(unsigned Reg) { if (hasInterval(Reg)) @@ -288,7 +288,7 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs; /// are not supported. /// /// \param UpdateFlags Update live intervals for nonallocatable physregs. - void handleMove(MachineInstr* MI, bool UpdateFlags = false); + void handleMove(MachineInstr &MI, bool UpdateFlags = false); /// moveIntoBundle - Update intervals for operands of MI so that they /// begin/end on the SlotIndex for BundleStart. @@ -298,7 +298,7 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs; /// Requires MI and BundleStart to have SlotIndexes, and assumes /// existing liveness is accurate. BundleStart should be the first /// instruction in the Bundle. - void handleMoveIntoBundle(MachineInstr* MI, MachineInstr* BundleStart, + void handleMoveIntoBundle(MachineInstr &MI, MachineInstr &BundleStart, bool UpdateFlags = false); /// repairIntervalsInRange - Update live intervals for instructions in a |