Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions llvm/include/llvm/CodeGen/LiveVariables.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ class LiveVariables : public MachineFunctionPass {
///
IndexedMap<VarInfo, VirtReg2IndexFunctor> VirtRegInfo;

/// PHIJoins - list of virtual registers that are PHI joins. These registers
/// may have multiple definitions, and they require special handling when
/// building live intervals.
SparseBitVector<> PHIJoins;

private: // Intermediate data structures
MachineFunction *MF = nullptr;

Expand Down Expand Up @@ -302,12 +297,6 @@ class LiveVariables : public MachineFunctionPass {
MachineBasicBlock *DomBB,
MachineBasicBlock *SuccBB,
std::vector<SparseBitVector<>> &LiveInSets);

/// isPHIJoin - Return true if Reg is a phi join register.
bool isPHIJoin(Register Reg) { return PHIJoins.test(Reg.id()); }

/// setPHIJoin - Mark Reg as a phi join register.
void setPHIJoin(Register Reg) { PHIJoins.set(Reg.id()); }
};

} // End llvm namespace
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/CodeGen/LiveVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) {
PhysRegDef.assign(NumRegs, nullptr);
PhysRegUse.assign(NumRegs, nullptr);
PHIVarInfo.resize(MF->getNumBlockIDs());
PHIJoins.clear();

// FIXME: LiveIntervals will be updated to remove its dependence on
// LiveVariables to improve compilation time and eliminate bizarre pass
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/CodeGen/PHIElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@ void PHIElimination::LowerPHINode(MachineBasicBlock &MBB,
if (IncomingReg) {
LiveVariables::VarInfo &VI = LV->getVarInfo(IncomingReg);

// Increment use count of the newly created virtual register.
LV->setPHIJoin(IncomingReg);

MachineInstr *OldKill = nullptr;
bool IsPHICopyAfterOldKill = false;

Expand Down