diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-11 23:42:20 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-11 23:42:20 +0000 |
commit | 4487479543d58df84bb403f4bcfd33f72aadfa18 (patch) | |
tree | db40437fad832376445a45ca393a878743a40c3f /lib/CodeGen | |
parent | 7bb39d861297398e62e2aed6dda3e80d82c453cd (diff) |
misched: regpressure getMaxPressureDelta, revert accidental checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/RegisterPressure.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index 015d673538..52174d8f37 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -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); - } } } |