LLVM  11.0.0git
Classes | Namespaces | Functions
CalcSpillWeights.h File Reference
#include "llvm/ADT/DenseMap.h"
#include "llvm/CodeGen/SlotIndexes.h"
Include dependency graph for CalcSpillWeights.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::VirtRegAuxInfo
 Calculate auxiliary information for a virtual register such as its spill weight and allocation hint. More...


 This class represents lattice values for constants.


static float llvm::normalizeSpillWeight (float UseDefFreq, unsigned Size, unsigned NumInstr)
 Normalize the spill weight of a live interval. More...
void llvm::calculateSpillWeightsAndHints (LiveIntervals &LIS, MachineFunction &MF, VirtRegMap *VRM, const MachineLoopInfo &MLI, const MachineBlockFrequencyInfo &MBFI, VirtRegAuxInfo::NormalizingFn norm=normalizeSpillWeight)
 Compute spill weights and allocation hints for all virtual register live intervals. More...