[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveVariables.h
Evan Cheng
evan.cheng at apple.com
Tue Apr 17 13:22:29 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
LiveVariables.h updated: 1.36 -> 1.37
---
Log message:
Keep track of number of uses within the function per virtual register.
---
Diffs of the changes: (+5 -1)
LiveVariables.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.36 llvm/include/llvm/CodeGen/LiveVariables.h:1.37
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.36 Sat Mar 17 04:29:54 2007
+++ llvm/include/llvm/CodeGen/LiveVariables.h Tue Apr 17 15:22:11 2007
@@ -83,12 +83,16 @@
/// is a bit set which uses the basic block number as an index.
BitVector UsedBlocks;
+ /// NumUses - Number of uses of this register across the entire function.
+ ///
+ unsigned NumUses;
+
/// Kills - List of MachineInstruction's which are the last use of this
/// virtual register (kill it) in their basic block.
///
std::vector<MachineInstr*> Kills;
- VarInfo() : DefInst(0) {}
+ VarInfo() : DefInst(0), NumUses(0) {}
/// removeKill - Delete a kill corresponding to the specified
/// machine instruction. Returns true if there was a kill
More information about the llvm-commits
mailing list