[llvm-commits] [llvm] r158339 - /llvm/trunk/lib/CodeGen/RegisterPressure.cpp
Andrew Trick
atrick at apple.com
Mon Jun 11 16:42:20 PDT 2012
Author: atrick
Date: Mon Jun 11 18:42:20 2012
New Revision: 158339
URL: http://llvm.org/viewvc/llvm-project?rev=158339&view=rev
Log:
misched: regpressure getMaxPressureDelta, revert accidental checkin.
Modified:
llvm/trunk/lib/CodeGen/RegisterPressure.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=158339&r1=158338&r2=158339&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Mon Jun 11 18:42:20 2012
@@ -680,19 +680,13 @@
// 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);
- }
}
}
More information about the llvm-commits
mailing list