mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
misched: Fix the DAG builder to handle an undef operand at ExitSU.
Assertion failed: (VNI && "No value to read by operand") rdar://12790267. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,7 +210,8 @@ void ScheduleDAGInstrs::addSchedBarrierDeps() {
|
||||
Uses[Reg].push_back(PhysRegSUOper(&ExitSU, -1));
|
||||
else {
|
||||
assert(!IsPostRA && "Virtual register encountered after regalloc.");
|
||||
addVRegUseDeps(&ExitSU, i);
|
||||
if (MO.readsReg()) // ignore undef operands
|
||||
addVRegUseDeps(&ExitSU, i);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user