misched: regpressure getMaxPressureDelta, revert accidental checkin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2012-06-11 23:42:20 +00:00
parent 7bb39d8612
commit 4487479543

View File

@ -680,20 +680,14 @@ void RegPressureTracker::bumpUpwardPressure(const MachineInstr *MI) {
// Generate liveness for uses.
for (unsigned i = 0, e = PhysRegOpers.Uses.size(); i < e; ++i) {
unsigned Reg = PhysRegOpers.Uses[i];
if (!hasRegAlias(Reg, LivePhysRegs, TRI)
&& (findRegAlias(Reg, PhysRegOpers.Defs, TRI)
== PhysRegOpers.Defs.end())) {
if (!hasRegAlias(Reg, LivePhysRegs, TRI))
increasePhysRegPressure(Reg);
}
}
for (unsigned i = 0, e = VirtRegOpers.Uses.size(); i < e; ++i) {
unsigned Reg = VirtRegOpers.Uses[i];
if (!LiveVirtRegs.count(Reg)
&& (std::find(VirtRegOpers.Defs.begin(), VirtRegOpers.Defs.end(), Reg)
!= VirtRegOpers.Defs.end())) {
if (!LiveVirtRegs.count(Reg))
increaseVirtRegPressure(Reg);
}
}
}
/// Consider the pressure increase caused by traversing this instruction