mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Fix PR11422.
This was a bug in keeping track of the available domains when merging domain values. The wrong domain mask caused ExecutionDepsFix to try to move VANDPSYrr to the integer domain which is only available in AVX2. Also add an assertion to catch future attempts at emitting AVX2 instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -600,6 +600,9 @@ void ExeDepsFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
|
||||
while (!Regs.empty()) {
|
||||
if (!dv) {
|
||||
dv = Regs.pop_back_val().Value;
|
||||
// Force the first dv to match the current instruction.
|
||||
dv->AvailableDomains = dv->getCommonDomains(available);
|
||||
assert(dv->AvailableDomains && "Domain should have been filtered");
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -617,9 +620,10 @@ void ExeDepsFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
|
||||
}
|
||||
|
||||
// dv is the DomainValue we are going to use for this instruction.
|
||||
if (!dv)
|
||||
if (!dv) {
|
||||
dv = alloc();
|
||||
dv->AvailableDomains = available;
|
||||
dv->AvailableDomains = available;
|
||||
}
|
||||
dv->Instrs.push_back(mi);
|
||||
|
||||
// Finally set all defs and non-collapsed uses to dv.
|
||||
|
Reference in New Issue
Block a user