LLVM API Documentation
#include <LiveIntervalAnalysis.h>


Definition at line 48 of file LiveIntervalAnalysis.h.
| LiveIntervals::LiveIntervals | ( | ) |
Definition at line 71 of file LiveIntervalAnalysis.cpp.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeLiveIntervalsPass().
| LiveIntervals::~LiveIntervals | ( | ) | [virtual] |
Definition at line 76 of file LiveIntervalAnalysis.cpp.
| void LiveIntervals::addKillFlags | ( | const VirtRegMap * | VRM | ) |
addKillFlags - Add kill flags to any instruction that kills a virtual register.
Definition at line 502 of file LiveIntervalAnalysis.cpp.
References llvm::MachineInstr::addRegisterKilled(), llvm::LiveInterval::advanceTo(), llvm::LiveInterval::begin(), llvm::SmallVectorImpl< T >::clear(), llvm::MachineInstr::clearRegisterKills(), llvm::LiveInterval::empty(), llvm::LiveRange::end, llvm::LiveInterval::end(), llvm::LiveInterval::find(), getInstructionFromIndex(), getInterval(), llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::VirtRegMap::getPhys(), getRegUnit(), I, llvm::TargetRegisterInfo::index2VirtReg(), llvm::MCRegisterInfo::DiffListIterator::isValid(), llvm::A64CC::MI, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::MachineRegisterInfo::reg_nodbg_empty(), llvm::SmallVectorTemplateCommon< T >::size(), and llvm::LiveRange::start.
| LiveRange LiveIntervals::addLiveRangeToEndOfBlock | ( | unsigned | reg, |
| MachineInstr * | startInst | ||
| ) |
addLiveRangeToEndOfBlock - Given a register and an instruction, adds a live range from that instruction to the end of its MBB.
Definition at line 625 of file LiveIntervalAnalysis.cpp.
References llvm::LiveInterval::addRange(), getInstructionIndex(), getMBBEndIdx(), llvm::LiveInterval::getNextValue(), getOrCreateInterval(), llvm::MachineInstr::getParent(), and getVNInfoAllocator().
| bool LiveIntervals::checkRegMaskInterference | ( | LiveInterval & | LI, |
| BitVector & | UsableRegs | ||
| ) |
checkRegMaskInterference - Test if LI is live across any register mask instructions, and compute a bit mask of physical registers that are not clobbered by any of them.
Returns false if LI doesn't cross any register mask instructions. In that case, the bit vector is not filled in.
Definition at line 644 of file LiveIntervalAnalysis.cpp.
References llvm::LiveInterval::advanceTo(), llvm::ArrayRef< T >::begin(), llvm::LiveInterval::begin(), llvm::tgtok::Bits, llvm::BitVector::clear(), llvm::BitVector::clearBitsNotInMask(), llvm::LiveInterval::empty(), llvm::sys::path::end(), llvm::ArrayRef< T >::end(), llvm::LiveInterval::end(), llvm::MachineBasicBlock::getNumber(), llvm::MCRegisterInfo::getNumRegs(), getRegMaskBits(), getRegMaskBitsInBlock(), getRegMaskSlots(), getRegMaskSlotsInBlock(), intervalIsInOneMBB(), llvm::BitVector::resize(), and llvm::LiveRange::start.
Referenced by llvm::PBQPBuilder::build(), and llvm::LiveRegMatrix::checkRegMaskInterference().
| void LiveIntervals::extendToIndices | ( | LiveInterval * | LI, |
| ArrayRef< SlotIndex > | Indices | ||
| ) |
extendToIndices - Extend the live range of LI to reach all points in Indices. The points in the Indices array must be jointly dominated by existing defs in LI. PHI-defs are added as needed to maintain SSA form.
If a SlotIndex in Indices is the end index of a basic block, LI will be extended to be live out of the basic block.
See also LiveRangeCalc::extend().
Definition at line 430 of file LiveIntervalAnalysis.cpp.
References llvm::LiveRangeCalc::extend(), getSlotIndexes(), getVNInfoAllocator(), llvm::LiveRangeCalc::reset(), and llvm::ArrayRef< T >::size().
| bool llvm::LiveIntervals::findLiveInMBBs | ( | SlotIndex | Start, |
| SlotIndex | End, | ||
| SmallVectorImpl< MachineBasicBlock * > & | MBBs | ||
| ) | const [inline] |
Definition at line 235 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::findLiveInMBBs().
| AliasAnalysis* llvm::LiveIntervals::getAliasAnalysis | ( | ) | const [inline] |
Definition at line 172 of file LiveIntervalAnalysis.h.
Referenced by isRematerializable().
| Live Interval false void LiveIntervals::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [virtual] |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 54 of file LiveIntervalAnalysis.cpp.
References llvm::MachineFunctionPass::getAnalysisUsage(), llvm::MachineDominatorsID, and llvm::MachineLoopInfoID.
| LiveInterval* llvm::LiveIntervals::getCachedRegUnit | ( | unsigned | Unit | ) | [inline] |
getCachedRegUnit - Return the live range for Unit if it has already been computed, or NULL if it hasn't been computed yet.
Definition at line 366 of file LiveIntervalAnalysis.h.
Referenced by llvm::RegPressureTracker::getInterval().
| const LiveInterval* llvm::LiveIntervals::getCachedRegUnit | ( | unsigned | Unit | ) | const [inline] |
Definition at line 370 of file LiveIntervalAnalysis.h.
| MachineInstr* llvm::LiveIntervals::getInstructionFromIndex | ( | SlotIndex | index | ) | const [inline] |
Returns the instruction associated with the given index.
Definition at line 188 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::getInstructionFromIndex().
Referenced by addKillFlags(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::LiveRangeEdit::canRematerializeAt(), llvm::SplitEditor::enterIntvAfter(), llvm::SplitEditor::enterIntvBefore(), findInsertLocation(), llvm::SplitAnalysis::getLastSplitPointIter(), isRematerializable(), llvm::SplitEditor::leaveIntvAfter(), llvm::SplitEditor::leaveIntvBefore(), repairIntervalsInRange(), llvm::SplitAnalysis::shouldSplitSingleBlock(), and shrinkToUses().
| SlotIndex llvm::LiveIntervals::getInstructionIndex | ( | const MachineInstr * | instr | ) | const [inline] |
Returns the base index of the given instruction.
Definition at line 183 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::getInstructionIndex().
Referenced by addLiveRangeToEndOfBlock(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::RegPressureTracker::bumpDownwardPressure(), llvm::LiveRangeEdit::canRematerializeAt(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::LiveRangeEdit::eliminateDeadDefs(), findUseBetween(), llvm::RegPressureTracker::getCurrSlot(), isPlainlyKilled(), llvm::RegPressureTracker::recede(), repairIntervalsInRange(), and shrinkToUses().
| LiveInterval& llvm::LiveIntervals::getInterval | ( | unsigned | Reg | ) | [inline] |
Definition at line 104 of file LiveIntervalAnalysis.h.
References LI.
Referenced by addKillFlags(), llvm::ScheduleDAGInstrs::addVRegUseDeps(), llvm::PBQPBuilder::build(), llvm::LiveRangeEdit::eliminateDeadDefs(), getInterval(), llvm::RegPressureTracker::getInterval(), getOrCreateInterval(), isLocalCopy(), llvm::SplitAnalysis::isOriginalEndpoint(), isPlainlyKilled(), print(), and repairIntervalsInRange().
| const LiveInterval& llvm::LiveIntervals::getInterval | ( | unsigned | Reg | ) | const [inline] |
Definition at line 110 of file LiveIntervalAnalysis.h.
References getInterval().
| SlotIndex llvm::LiveIntervals::getMBBEndIdx | ( | const MachineBasicBlock * | mbb | ) | const [inline] |
Return the last index in the given basic block.
Definition at line 198 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::getMBBEndIdx().
Referenced by addLiveRangeToEndOfBlock(), llvm::ConnectedVNInfoEqClasses::Classify(), llvm::SplitAnalysis::countLiveBlocks(), llvm::SplitEditor::enterIntvAtEnd(), llvm::RegPressureTracker::getCurrSlot(), llvm::SplitAnalysis::getLastSplitPointIter(), handleMove(), isLiveOutOfMBB(), repairIntervalsInRange(), shrinkToUses(), and llvm::SplitEditor::useIntv().
| MachineBasicBlock* llvm::LiveIntervals::getMBBFromIndex | ( | SlotIndex | index | ) | const [inline] |
Definition at line 212 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::getMBBFromIndex().
Referenced by llvm::ConnectedVNInfoEqClasses::Classify(), llvm::SplitAnalysis::countLiveBlocks(), hasPHIKill(), llvm::SplitEditor::overlapIntv(), and shrinkToUses().
| SlotIndex llvm::LiveIntervals::getMBBStartIdx | ( | const MachineBasicBlock * | mbb | ) | const [inline] |
Return the first index in the given basic block.
Definition at line 193 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::getMBBStartIdx().
Referenced by findInsertLocation(), handleMove(), isLiveInToMBB(), llvm::SplitEditor::leaveIntvAtTop(), shrinkToUses(), and llvm::SplitEditor::useIntv().
| LiveInterval& llvm::LiveIntervals::getOrCreateInterval | ( | unsigned | Reg | ) | [inline] |
Definition at line 119 of file LiveIntervalAnalysis.h.
References getInterval(), llvm::IndexedMap< T, ToIndexT >::grow(), and hasInterval().
Referenced by addLiveRangeToEndOfBlock(), llvm::LiveRangeEdit::createFrom(), and repairIntervalsInRange().
| ArrayRef<const uint32_t*> llvm::LiveIntervals::getRegMaskBits | ( | ) | const [inline] |
getRegMaskBits() - Returns an array of register mask pointers corresponding to getRegMaskSlots().
Definition at line 323 of file LiveIntervalAnalysis.h.
Referenced by checkRegMaskInterference(), and getRegMaskBitsInBlock().
| ArrayRef<const uint32_t*> llvm::LiveIntervals::getRegMaskBitsInBlock | ( | unsigned | MBBNum | ) | const [inline] |
getRegMaskBitsInBlock - Returns an array of mask pointers corresponding to getRegMaskSlotsInBlock(MBBNum).
Definition at line 327 of file LiveIntervalAnalysis.h.
References getRegMaskBits(), and P.
Referenced by checkRegMaskInterference().
getRegMaskSlots - Returns a sorted array of slot indices of all instructions with register mask operands.
Definition at line 311 of file LiveIntervalAnalysis.h.
Referenced by checkRegMaskInterference(), and getRegMaskSlotsInBlock().
getRegMaskSlotsInBlock - Returns a sorted array of slot indices of all instructions with register mask operands in the basic block numbered MBBNum.
Definition at line 316 of file LiveIntervalAnalysis.h.
References getRegMaskSlots(), and P.
Referenced by checkRegMaskInterference().
| LiveInterval& llvm::LiveIntervals::getRegUnit | ( | unsigned | Unit | ) | [inline] |
getRegUnit - Return the live range for Unit. It will be computed if it doesn't exist.
Definition at line 354 of file LiveIntervalAnalysis.h.
Referenced by addKillFlags(), llvm::PBQPBuilder::build(), and llvm::LiveRegMatrix::checkRegUnitInterference().
| SlotIndexes* llvm::LiveIntervals::getSlotIndexes | ( | ) | const [inline] |
Definition at line 168 of file LiveIntervalAnalysis.h.
Referenced by llvm::VirtRegAuxInfo::CalculateWeightAndHint(), llvm::LiveRegMatrix::checkRegUnitInterference(), extendToIndices(), llvm::LiveRangeEdit::rematerializeAt(), llvm::SplitEditor::reset(), llvm::SplitEditor::splitLiveThroughBlock(), llvm::SplitEditor::splitRegInBlock(), and llvm::SplitEditor::splitRegOutBlock().
Definition at line 608 of file LiveIntervalAnalysis.cpp.
References llvm::LibFunc::pow.
Referenced by llvm::PBQPBuilderWithCoalescing::build(), and llvm::VirtRegAuxInfo::CalculateWeightAndHint().
| VNInfo::Allocator& llvm::LiveIntervals::getVNInfoAllocator | ( | ) | [inline] |
Definition at line 240 of file LiveIntervalAnalysis.h.
Referenced by addLiveRangeToEndOfBlock(), extendToIndices(), and llvm::SplitEditor::reset().
| void LiveIntervals::handleMove | ( | MachineInstr * | MI, |
| bool | UpdateFlags = false |
||
| ) |
handleMove - call this method to notify LiveIntervals that instruction 'mi' has been moved within a basic block. This will update the live intervals for all operands of mi. Moves between basic blocks are not supported.
| UpdateFlags | Update live intervals for nonallocatable physregs. |
Definition at line 1022 of file LiveIntervalAnalysis.cpp.
References llvm::SlotIndexes::getInstructionIndex(), getMBBEndIdx(), getMBBStartIdx(), llvm::MachineInstr::getParent(), llvm::SlotIndexes::insertMachineInstrInMaps(), llvm::MachineInstr::isBundled(), llvm::SlotIndexes::removeMachineInstrFromMaps(), and llvm::LiveIntervals::HMEditor::updateAllRanges().
| void LiveIntervals::handleMoveIntoBundle | ( | MachineInstr * | MI, |
| MachineInstr * | BundleStart, | ||
| bool | UpdateFlags = false |
||
| ) |
moveIntoBundle - Update intervals for operands of MI so that they begin/end on the SlotIndex for BundleStart.
| UpdateFlags | Update live intervals for nonallocatable physregs. |
Requires MI and BundleStart to have SlotIndexes, and assumes existing liveness is accurate. BundleStart should be the first instruction in the Bundle.
Definition at line 1035 of file LiveIntervalAnalysis.cpp.
References llvm::SlotIndexes::getInstructionIndex(), and llvm::LiveIntervals::HMEditor::updateAllRanges().
Definition at line 114 of file LiveIntervalAnalysis.h.
References llvm::IndexedMap< T, ToIndexT >::inBounds().
Referenced by llvm::LiveRangeEdit::eliminateDeadDefs(), getOrCreateInterval(), print(), and repairIntervalsInRange().
| bool LiveIntervals::hasPHIKill | ( | const LiveInterval & | LI, |
| const VNInfo * | VNI | ||
| ) | const |
Returns true if VNI is killed by any PHI-def values in LI. This may conservatively return true to avoid expensive computations.
Definition at line 589 of file LiveIntervalAnalysis.cpp.
References llvm::VNInfo::def, llvm::SlotIndexes::getMBBEndIdx(), getMBBFromIndex(), llvm::LiveInterval::getVNInfoBefore(), I, llvm::VNInfo::isPHIDef(), llvm::VNInfo::isUnused(), llvm::PHI, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_end(), llvm::MachineBasicBlock::pred_size(), llvm::LiveInterval::vni_begin(), and llvm::LiveInterval::vni_end().
| SlotIndex llvm::LiveIntervals::InsertMachineInstrInMaps | ( | MachineInstr * | MI | ) | [inline] |
Definition at line 223 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::insertMachineInstrInMaps().
| void llvm::LiveIntervals::insertMBBInMaps | ( | MachineBasicBlock * | MBB | ) | [inline] |
| MachineBasicBlock * LiveIntervals::intervalIsInOneMBB | ( | const LiveInterval & | LI | ) | const |
intervalIsInOneMBB - If LI is confined to a single basic block, return a pointer to that block. If LI is live in to or out of any block, return NULL.
Definition at line 565 of file LiveIntervalAnalysis.cpp.
References llvm::LiveInterval::beginIndex(), llvm::LiveInterval::endIndex(), llvm::SlotIndexes::getMBBFromIndex(), and llvm::SlotIndex::isBlock().
Referenced by checkRegMaskInterference(), and isLocalCopy().
| bool llvm::LiveIntervals::isLiveInToMBB | ( | const LiveInterval & | li, |
| const MachineBasicBlock * | mbb | ||
| ) | const [inline] |
Definition at line 202 of file LiveIntervalAnalysis.h.
References getMBBStartIdx(), and llvm::LiveInterval::liveAt().
| bool llvm::LiveIntervals::isLiveOutOfMBB | ( | const LiveInterval & | li, |
| const MachineBasicBlock * | mbb | ||
| ) | const [inline] |
Definition at line 207 of file LiveIntervalAnalysis.h.
References getMBBEndIdx(), and llvm::LiveInterval::liveAt().
Referenced by llvm::VirtRegAuxInfo::CalculateWeightAndHint().
| bool llvm::LiveIntervals::isNotInMIMap | ( | const MachineInstr * | Instr | ) | const [inline] |
isNotInMIMap - returns true if the specified machine instr has been removed or was never entered in the map.
Definition at line 178 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::hasIndex().
Referenced by isPlainlyKilled().
| void LiveIntervals::print | ( | raw_ostream & | O, |
| const Module * | = 0 |
||
| ) | const [virtual] |
print - Implement the dump method.
Reimplemented from llvm::Pass.
Definition at line 123 of file LiveIntervalAnalysis.cpp.
References getInterval(), llvm::MachineRegisterInfo::getNumVirtRegs(), hasInterval(), llvm::TargetRegisterInfo::index2VirtReg(), LI, and llvm::SmallVectorTemplateCommon< T, typename >::size().
| void LiveIntervals::pruneValue | ( | LiveInterval * | LI, |
| SlotIndex | Kill, | ||
| SmallVectorImpl< SlotIndex > * | EndPoints | ||
| ) |
pruneValue - If an LI value is live at Kill, prune its live range by removing any liveness reachable from Kill. Add live range end points to EndPoints such that extendToIndices(LI, EndPoints) will reconstruct the value's live range.
Calling pruneValue() and extendToIndices() can be used to reconstruct SSA form after adding defs to a virtual register.
Definition at line 438 of file LiveIntervalAnalysis.cpp.
References llvm::df_ext_begin(), llvm::df_ext_end(), llvm::LiveRangeQuery::endPoint(), llvm::SlotIndexes::getMBBFromIndex(), llvm::SlotIndexes::getMBBRange(), I, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::LiveInterval::removeRange(), llvm::MachineBasicBlock::succ_begin(), llvm::MachineBasicBlock::succ_end(), llvm::tie(), llvm::LiveRangeQuery::valueIn(), and llvm::LiveRangeQuery::valueOut().
| void LiveIntervals::releaseMemory | ( | ) | [virtual] |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused.
Optionally implement this function to release pass memory when it is no longer used.
Reimplemented from llvm::Pass.
Definition at line 80 of file LiveIntervalAnalysis.cpp.
References llvm::IndexedMap< T, ToIndexT >::clear(), llvm::SmallVectorImpl< T >::clear(), llvm::TargetRegisterInfo::index2VirtReg(), llvm::BumpPtrAllocator::Reset(), llvm::IndexedMap< T, ToIndexT >::size(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
| void llvm::LiveIntervals::removeInterval | ( | unsigned | Reg | ) | [inline] |
Definition at line 128 of file LiveIntervalAnalysis.h.
Referenced by llvm::RegAllocBase::allocatePhysRegs(), and llvm::LiveRangeEdit::eraseVirtReg().
| void llvm::LiveIntervals::RemoveMachineInstrFromMaps | ( | MachineInstr * | MI | ) | [inline] |
Definition at line 227 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::removeMachineInstrFromMaps().
Referenced by llvm::LiveRangeEdit::eliminateDeadDefs().
| void LiveIntervals::repairIntervalsInRange | ( | MachineBasicBlock * | MBB, |
| MachineBasicBlock::iterator | Begin, | ||
| MachineBasicBlock::iterator | End, | ||
| ArrayRef< unsigned > | OrigRegs | ||
| ) |
repairIntervalsInRange - Update live intervals for instructions in a range of iterators. It is intended for use after target hooks that may insert or remove instructions, and is only efficient for a small number of instructions.
OrigRegs is a vector of registers that were originally used by the instructions in the range between the two iterators.
Currently, the only only changes that are supported are simple removal and addition of uses.
Definition at line 1045 of file LiveIntervalAnalysis.cpp.
References llvm::LiveInterval::addRange(), llvm::LiveInterval::begin(), llvm::MachineBasicBlock::begin(), llvm::VNInfo::def, llvm::LiveRange::end, llvm::LiveInterval::end(), llvm::MachineBasicBlock::end(), llvm::LiveInterval::find(), llvm::SlotIndex::getDeadSlot(), getInstructionFromIndex(), getInstructionIndex(), getInterval(), getMBBEndIdx(), llvm::LiveInterval::getNextValue(), getOrCreateInterval(), llvm::SlotIndex::getPrevSlot(), llvm::MachineOperand::getReg(), llvm::SlotIndex::getRegSlot(), llvm::MachineOperand::getSubReg(), llvm::LiveInterval::hasAtLeastOneValue(), llvm::SlotIndexes::hasIndex(), hasInterval(), I, llvm::SlotIndex::isBlock(), llvm::SlotIndex::isDead(), llvm::MachineInstr::isDebugValue(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUndef(), llvm::MachineOperand::isUse(), llvm::SlotIndex::isValid(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::MachineInstr::operands_begin(), llvm::MachineInstr::operands_end(), llvm::prior(), llvm::LiveInterval::removeRange(), llvm::SlotIndexes::repairIndexesInRange(), llvm::ArrayRef< T >::size(), llvm::LiveRange::start, and llvm::LiveRange::valno.
| void llvm::LiveIntervals::ReplaceMachineInstrInMaps | ( | MachineInstr * | MI, |
| MachineInstr * | NewMI | ||
| ) | [inline] |
Definition at line 231 of file LiveIntervalAnalysis.h.
References llvm::SlotIndexes::replaceMachineInstrInMaps().
| bool LiveIntervals::runOnMachineFunction | ( | MachineFunction & | fn | ) | [virtual] |
runOnMachineFunction - pass entry point
runOnMachineFunction - Register allocate the whole function
Implements llvm::MachineFunctionPass.
Definition at line 99 of file LiveIntervalAnalysis.cpp.
References DEBUG, llvm::Pass::dump(), llvm::TargetMachine::getInstrInfo(), llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::MachineFunction::getRegInfo(), llvm::TargetMachine::getRegisterInfo(), llvm::MachineFunction::getTarget(), and llvm::IndexedMap< T, ToIndexT >::resize().
| bool LiveIntervals::shrinkToUses | ( | LiveInterval * | li, |
| SmallVectorImpl< MachineInstr * > * | dead = 0 |
||
| ) |
shrinkToUses - After removing some uses of a register, shrink its live range to just the remaining uses. This method does not compute reaching defs for new uses, and it doesn't remove dead defs. Dead PHIDef values are marked as unused. New dead machine instructions are added to the dead vector. Return true if the interval may have been separated into multiple connected components.
shrinkToUses - After removing some uses of a register, shrink its live range to just the remaining uses. This method does not compute reaching defs for new uses, and it doesn't remove dead defs.
Definition at line 302 of file LiveIntervalAnalysis.cpp.
References llvm::LiveInterval::addRange(), llvm::MachineInstr::addRegisterDead(), llvm::MachineInstr::allDefsAreDead(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::dbgs(), DEBUG, llvm::VNInfo::def, llvm::SmallVectorBase::empty(), llvm::LiveRange::end, llvm::LiveInterval::end(), llvm::LiveInterval::extendInBlock(), llvm::LiveInterval::FindLiveRangeContaining(), llvm::SlotIndex::getDeadSlot(), getInstructionFromIndex(), getInstructionIndex(), getMBBEndIdx(), getMBBFromIndex(), getMBBStartIdx(), llvm::SlotIndex::getPrevSlot(), llvm::SlotIndex::getRegSlot(), llvm::LiveInterval::getVNInfoBefore(), I, llvm::SmallPtrSet< PtrType, SmallSize >::insert(), llvm::MachineInstr::isDebugValue(), llvm::VNInfo::isPHIDef(), llvm::VNInfo::isUnused(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::VNInfo::markUnused(), llvm::A64CC::MI, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::LiveInterval::ranges, llvm::MachineInstr::readsVirtualRegister(), llvm::LiveInterval::reg, llvm::MachineRegisterInfo::reg_begin(), llvm::LiveInterval::removeRange(), llvm::LiveRangeQuery::valueDefined(), llvm::LiveRangeQuery::valueIn(), llvm::LiveInterval::vni_begin(), and llvm::LiveInterval::vni_end().
Referenced by llvm::LiveRangeEdit::eliminateDeadDefs().
char LiveIntervals::ID = 0 [static] |
Definition at line 97 of file LiveIntervalAnalysis.h.