aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorAlexis Engelke <engelke@in.tum.de>2024-06-21 12:30:59 +0200
committerGitHub <noreply@github.com>2024-06-21 12:30:59 +0200
commit0ae6cfc5990b0b739166bd7db370125ca66494c2 (patch)
tree21bc496f931b0e5216ca2783fff7d1c20b2940e0 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentb1ec1a2dc81075eceddd2c6b34b52d2a741fd961 (diff)
downloadllvm-0ae6cfc5990b0b739166bd7db370125ca66494c2.zip
llvm-0ae6cfc5990b0b739166bd7db370125ca66494c2.tar.gz
llvm-0ae6cfc5990b0b739166bd7db370125ca66494c2.tar.bz2
[RegAllocFast] Handle single-vdef instrs faster (#96284)
On x86, many instructions have tied operands, so allocateInstruction uses the more complex assignment strategy, which computes the assignment order of virtual defs first. This involves iterating over all register classes (or register aliases for physical defs) to compute the possible number of defs per register class. However, this information is only used for sorting virtual defs and therefore not required when there's only one virtual def -- which is a very common case. As iterating over all register classes/aliases is not cheap, do this only when there's more than one virtual def.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions