Lines Matching +full:pressure +full:- +full:max
1 //===- GCNRegPressure.h -----------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// This file defines the GCNRegPressure class, which tracks registry pressure
13 /// pressures, and declares one with max occupancy as winner.
15 //===----------------------------------------------------------------------===//
55 return std::max(Value[VGPR32], Value[AGPR32]); in getVGPRNum()
59 unsigned getVGPRTuplesWeight() const { return std::max(Value[VGPR_TUPLE], in getVGPRTuplesWeight()
79 /// to target-specific pecularities (e.g. we care about occupancy rather than
85 /// 3. Less tuple register pressure (first preference to VGPR tuples if we
86 /// determine that SGPR pressure is not important)
87 /// 4. Less raw register pressure (first preference to VGPR tuples if we
88 /// determine that SGPR pressure is not important)
90 unsigned MaxOccupancy = std::numeric_limits<unsigned>::max()) const;
106 GCNRegPressure &operator-=(const GCNRegPressure &RHS) {
108 Value[I] -= RHS.Value[I];
119 friend GCNRegPressure max(const GCNRegPressure &P1,
125 inline GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2) { in max() function
128 Res.Value[I] = std::max(P1.Value[I], P2.Value[I]); in max()
139 inline GCNRegPressure operator-(const GCNRegPressure &P1,
142 Diff -= P2;
193 reset(MBB.getParent()->getRegInfo(), in reset()
194 LIS.getSlotIndexes()->getMBBEndIdx(&MBB)); in reset()
199 reset(MI.getMF()->getRegInfo(), LIS.getInstructionIndex(MI).getDeadSlot()); in reset()
273 /// creates a map MachineInstr -> LiveRegSet
274 /// R - range of iterators on instructions
275 /// After - upon entry or exit of every instruction
290 auto &MRI = (*R.begin())->getParent()->getParent()->getRegInfo(); in getLiveRegMap()
320 MI.getParent()->getParent()->getRegInfo()); in getLiveRegsAfter()
326 MI.getParent()->getParent()->getRegInfo()); in getLiveRegsBefore()