[llvm] r254370 - RegisterPressure: There is no need to make getCurSlot() public
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 30 20:20:01 PST 2015
Author: matze
Date: Mon Nov 30 22:20:01 2015
New Revision: 254370
URL: http://llvm.org/viewvc/llvm-project?rev=254370&view=rev
Log:
RegisterPressure: There is no need to make getCurSlot() public
Modified:
llvm/trunk/include/llvm/CodeGen/RegisterPressure.h
Modified: llvm/trunk/include/llvm/CodeGen/RegisterPressure.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/RegisterPressure.h?rev=254370&r1=254369&r2=254370&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/RegisterPressure.h (original)
+++ llvm/trunk/include/llvm/CodeGen/RegisterPressure.h Mon Nov 30 22:20:01 2015
@@ -328,10 +328,6 @@ public:
// position changes while pressure does not.
void setPos(MachineBasicBlock::const_iterator Pos) { CurrPos = Pos; }
- /// \brief Get the SlotIndex for the first nondebug instruction including or
- /// after the current position.
- SlotIndex getCurrSlot() const;
-
/// Recede across the previous instruction.
bool recede(SmallVectorImpl<unsigned> *LiveUses = nullptr,
PressureDiff *PDiff = nullptr);
@@ -442,6 +438,10 @@ protected:
void discoverLiveOut(unsigned Reg);
void discoverLiveIn(unsigned Reg);
+ /// \brief Get the SlotIndex for the first nondebug instruction including or
+ /// after the current position.
+ SlotIndex getCurrSlot() const;
+
const LiveRange *getLiveRange(unsigned Reg) const;
void increaseRegPressure(ArrayRef<unsigned> Regs);
More information about the llvm-commits
mailing list