aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-14 06:18:38 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2014-01-14 06:18:38 +0000
commitb6b35a49558d58862e97664b2a82a582babf808d (patch)
tree3299929ee5d4e4a0efaf5971175ef26c4b06d574 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
parent209120621a179135d5932e2138fec23691285759 (diff)
downloadllvm-b6b35a49558d58862e97664b2a82a582babf808d.zip
llvm-b6b35a49558d58862e97664b2a82a582babf808d.tar.gz
llvm-b6b35a49558d58862e97664b2a82a582babf808d.tar.bz2
Always let value types influence register classes.
When creating a virtual register for a def, the value type should be used to pick the register class. If we only use the register class constraint on the instruction, we might pick a too large register class. Some registers can store values of different sizes. For example, the x86 xmm registers can hold f32, f64, and 128-bit vectors. The three different value sizes are represented by register classes with identical register sets: FR32, FR64, and VR128. These register classes have different spill slot sizes, so it is important to use the right one. The register class constraint on an instruction doesn't necessarily care about the size of the value its defining. The value type determines that. This fixes a problem where InstrEmitter was picking 32-bit register classes for 64-bit values on SPARC. llvm-svn: 199187
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
0 files changed, 0 insertions, 0 deletions