mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
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:
parent
7bb39d8612
commit
4487479543
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user