summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveInterval.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-08 23:54:00 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-08 23:54:00 +0000
commit6c4329ec96fa49e42310a8fe57813a5d7b73e621 (patch)
tree3ec3a62b5e6da72d87cca5ccfb8539548b32da81 /include/llvm/CodeGen/LiveInterval.h
parent656edcf138563068a2e7d52fb35f8de1375bad9a (diff)
downloadllvm-6c4329ec96fa49e42310a8fe57813a5d7b73e621.tar.gz
llvm-6c4329ec96fa49e42310a8fe57813a5d7b73e621.tar.bz2
llvm-6c4329ec96fa49e42310a8fe57813a5d7b73e621.tar.xz
Rearrange for better alignment and less padding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveInterval.h')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 17660e9470..450d4b4a3f 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -60,8 +60,8 @@ namespace llvm {
IS_DEF_ACCURATE = 1 << 4
};
- unsigned char flags;
MachineInstr *copy;
+ unsigned char flags;
public:
typedef BumpPtrAllocator Allocator;
@@ -76,11 +76,12 @@ namespace llvm {
/// d is presumed to point to the actual defining instr. If it doesn't
/// setIsDefAccurate(false) should be called after construction.
VNInfo(unsigned i, SlotIndex d, MachineInstr *c)
- : flags(IS_DEF_ACCURATE), id(i), def(d) { copy = c; }
+ : copy(c), flags(IS_DEF_ACCURATE), id(i), def(d)
+ { }
/// VNInfo construtor, copies values from orig, except for the value number.
VNInfo(unsigned i, const VNInfo &orig)
- : flags(orig.flags), copy(orig.copy), id(i), def(orig.def)
+ : copy(orig.copy), flags(orig.flags), id(i), def(orig.def)
{ }
/// Copy from the parameter into this VNInfo.