aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-16 07:25:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-16 07:25:37 +0000
commita6db2d3df22ee173e653a441a8be3f0810ce8631 (patch)
tree972f2d57cbe91c12fe6e302011e7654374a00964
parentbc165e436beb02443abea9736c1b77e2dd7828b6 (diff)
downloadexternal_llvm-a6db2d3df22ee173e653a441a8be3f0810ce8631.tar.gz
external_llvm-a6db2d3df22ee173e653a441a8be3f0810ce8631.tar.bz2
external_llvm-a6db2d3df22ee173e653a441a8be3f0810ce8631.zip
Comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41119 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/LiveInterval.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 068a15d9a2..99933eaa95 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -88,10 +88,14 @@ namespace llvm {
/// ValueNumberInfo - If the value number definition is undefined (e.g. phi
/// merge point), it contains ~0u,x. If the value number is not in use, it
/// contains ~1u,x to indicate that the value # is not used.
+ /// def - Instruction # of the definition.
+ /// reg - Source reg iff val# is defined by a copy; zero otherwise.
+ /// kills - Instruction # of the kills. If a kill is an odd #, it means
+ /// the kill is a phi join point.
struct VNInfo {
- unsigned def; // instruction # of the definition
- unsigned reg; // src reg: non-zero iff val# is defined by a copy
- SmallVector<unsigned, 4> kills; // instruction #s of the kills
+ unsigned def;
+ unsigned reg;
+ SmallVector<unsigned, 4> kills;
VNInfo() : def(~1U), reg(0) {};
VNInfo(unsigned d, unsigned r) : def(d), reg(r) {};
};