diff options
author | Andrew Trick <atrick@apple.com> | 2012-05-24 22:10:57 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-05-24 22:10:57 +0000 |
commit | b2c172e20a3367fad524ec3e498d78995f736f64 (patch) | |
tree | 94a92cec76aaebbc7eca6a056f1d44a85a3f20c1 /llvm/lib/CodeGen/RegisterPressure.cpp | |
parent | c575c80c3bf8ae24b34098ddab2200de082c1103 (diff) | |
download | llvm-b2c172e20a3367fad524ec3e498d78995f736f64.zip llvm-b2c172e20a3367fad524ec3e498d78995f736f64.tar.gz llvm-b2c172e20a3367fad524ec3e498d78995f736f64.tar.bz2 |
regpressure: physreg livein/out fix
llvm-svn: 157422
Diffstat (limited to 'llvm/lib/CodeGen/RegisterPressure.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegisterPressure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp index b30f76d..0bdb19a 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/lib/CodeGen/RegisterPressure.cpp @@ -356,7 +356,7 @@ void RegPressureTracker::addLiveRegs(ArrayRef<unsigned> Regs) { /// Add PhysReg to the live in set and increase max pressure. void RegPressureTracker::discoverPhysLiveIn(unsigned Reg) { assert(!LivePhysRegs.count(Reg) && "avoid bumping max pressure twice"); - if (findRegAlias(Reg, P.LiveInRegs, TRI) == P.LiveInRegs.end()) + if (findRegAlias(Reg, P.LiveInRegs, TRI) != P.LiveInRegs.end()) return; // At live in discovery, unconditionally increase the high water mark. @@ -367,7 +367,7 @@ void RegPressureTracker::discoverPhysLiveIn(unsigned Reg) { /// Add PhysReg to the live out set and increase max pressure. void RegPressureTracker::discoverPhysLiveOut(unsigned Reg) { assert(!LivePhysRegs.count(Reg) && "avoid bumping max pressure twice"); - if (findRegAlias(Reg, P.LiveOutRegs, TRI) == P.LiveOutRegs.end()) + if (findRegAlias(Reg, P.LiveOutRegs, TRI) != P.LiveOutRegs.end()) return; // At live out discovery, unconditionally increase the high water mark. |