diff options
author | Lang Hames <lhames@gmail.com> | 2015-02-03 06:14:06 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-02-03 06:14:06 +0000 |
commit | d48bf3f9125564e11786c94edb34aa902e62ff78 (patch) | |
tree | 8a5a088163baafeae45946824305d3bb290c146d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c7f8bfc5e52ef9b0133874de0fb7d26ed4c41e10 (diff) | |
download | llvm-d48bf3f9125564e11786c94edb34aa902e62ff78.zip llvm-d48bf3f9125564e11786c94edb34aa902e62ff78.tar.gz llvm-d48bf3f9125564e11786c94edb34aa902e62ff78.tar.bz2 |
[PBQP Regalloc] Pre-spill vregs that have no legal physregs.
The PBQP::RegAlloc::MatrixMetadata class assumes that matrices have at least two
rows/columns (for the spill option plus at least one physreg). This patch
ensures that that invariant is met by pre-spilling vregs that have no physreg
options so that no node (and no corresponding edges) need be added to the PBQP
graph.
This fixes a bug in an out-of-tree target that was identified by Jonas Paulsson.
Thanks for tracking this down Jonas!
llvm-svn: 227942
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions