aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-12-18 17:50:58 +0000
committerHal Finkel <hfinkel@anl.gov>2012-12-18 17:50:58 +0000
commit943f76d1b304f63f35d6ab256cd0ac5ee8a14223 (patch)
treeaf1803a28727f7b1b2f11354f785042e34fb7c88 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent36a60721ceccdb41ccd01d603e7c92ff7c2bae1a (diff)
downloadllvm-943f76d1b304f63f35d6ab256cd0ac5ee8a14223.zip
llvm-943f76d1b304f63f35d6ab256cd0ac5ee8a14223.tar.gz
llvm-943f76d1b304f63f35d6ab256cd0ac5ee8a14223.tar.bz2
Check multiple register classes for inline asm tied registers
A register can be associated with several distinct register classes. For example, on PPC, the floating point registers are each associated with both F4RC (which holds f32) and F8RC (which holds f64). As a result, this code would fail when provided with a floating point register and an f64 operand because it would happen to find the register in the F4RC class first and return that. From the F4RC class, SDAG would extract f32 as the register type and then assert because of the invalid implied conversion between the f64 value and the f32 register. Instead, search all register classes. If a register class containing the the requested register has the requested type, then return that register class. Otherwise, as before, return the first register class found that contains the requested register. llvm-svn: 170436
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions