[llvm-commits] [llvm] r113445 - /llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Sep 8 16:54:00 PDT 2010
Author: stoklund
Date: Wed Sep 8 18:54:00 2010
New Revision: 113445
URL: http://llvm.org/viewvc/llvm-project?rev=113445&view=rev
Log:
Rearrange for better alignment and less padding
Modified:
llvm/trunk/include/llvm/CodeGen/LiveInterval.h
Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=113445&r1=113444&r2=113445&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Wed Sep 8 18:54:00 2010
@@ -60,8 +60,8 @@
IS_DEF_ACCURATE = 1 << 4
};
- unsigned char flags;
MachineInstr *copy;
+ unsigned char flags;
public:
typedef BumpPtrAllocator Allocator;
@@ -76,11 +76,12 @@
/// 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.
More information about the llvm-commits
mailing list