projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix physical register liveness calculations:
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineInstrBundle.cpp
diff --git
a/lib/CodeGen/MachineInstrBundle.cpp
b/lib/CodeGen/MachineInstrBundle.cpp
index 1f7fbfc719b07e60b71fe1d9c6bc66f0a5f8f49f..70f97dedaaa5f20f5f052ffd385b8cab60f6b697 100644
(file)
--- a/
lib/CodeGen/MachineInstrBundle.cpp
+++ b/
lib/CodeGen/MachineInstrBundle.cpp
@@
-281,7
+281,7
@@
MachineOperandIteratorBase::PhysRegInfo
MachineOperandIteratorBase::analyzePhysReg(unsigned Reg,
const TargetRegisterInfo *TRI) {
bool AllDefsDead = true;
MachineOperandIteratorBase::analyzePhysReg(unsigned Reg,
const TargetRegisterInfo *TRI) {
bool AllDefsDead = true;
- PhysRegInfo PRI = {false, false, false, false, false, false
, false
};
+ PhysRegInfo PRI = {false, false, false, false, false, false};
assert(TargetRegisterInfo::isPhysicalRegister(Reg) &&
"analyzePhysReg not given a physical register!");
assert(TargetRegisterInfo::isPhysicalRegister(Reg) &&
"analyzePhysReg not given a physical register!");
@@
-305,7
+305,9
@@
MachineOperandIteratorBase::analyzePhysReg(unsigned Reg,
// Reg or a super-reg is read, and perhaps killed also.
PRI.Reads = true;
PRI.Kills = MO.isKill();
// Reg or a super-reg is read, and perhaps killed also.
PRI.Reads = true;
PRI.Kills = MO.isKill();
- } if (IsRegOrOverlapping && MO.readsReg()) {
+ }
+
+ if (IsRegOrOverlapping && MO.readsReg()) {
PRI.ReadsOverlap = true;// Reg or an overlapping register is read.
}
PRI.ReadsOverlap = true;// Reg or an overlapping register is read.
}