OSDN Git Service

Shrink MachineOperand from 40 to 32 bytes on 64-bit hosts.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 19 Oct 2010 20:56:32 +0000 (20:56 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 19 Oct 2010 20:56:32 +0000 (20:56 +0000)
commit2594746045258958673ebe42db2a27a4d05b0b73
treeaad6cfd7e8f23c2272148ea4de9a4afb818bdbdd
parent205942a4a55d568e93480fc22d25cc7dac525fb7
Shrink MachineOperand from 40 to 32 bytes on 64-bit hosts.

Pull an unsigned out of the Contents union such that it has the same size as two
pointers and no padding.

Arrange members such that the Contents union and all pointers can be 8-byte
aligned without padding.

This speeds up code generation by 0.8% on a 64-bit host. 32-bit hosts should be
unaffected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116857 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineOperand.h
lib/CodeGen/MachineInstr.cpp