mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +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,19 +680,13 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user