diff options
| author | Luke Lau <luke@igalia.com> | 2025-10-23 11:05:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 03:05:39 +0000 |
| commit | 6f147445f7cfa8b5f09f154b63ef8073ed6243a1 (patch) | |
| tree | bac7540e8994f06cc6b70f3f1ab4d5764597693a /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
| parent | 4903a1fb0738f1b86da70482bfc9ff9425564377 (diff) | |
| download | llvm-6f147445f7cfa8b5f09f154b63ef8073ed6243a1.zip llvm-6f147445f7cfa8b5f09f154b63ef8073ed6243a1.tar.gz llvm-6f147445f7cfa8b5f09f154b63ef8073ed6243a1.tar.bz2 | |
[RegAlloc] Constrain rematted regclass to use (#164386)
When rematting we create a new virtual register with the original def's
register class. However the use may have a different register class if
the interval is split, which means we end up with an invalid register
class.
This fixes #164181 by constraining the newly created register to the
use's register class.
The test case is reduced as far as it goes. Because this test requires
us to reach a certain amount of register pressure in certain conditions
I'm not sure if there's an easy way to handwrite this scenario.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions
