mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
Ignore dbg_value's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e8d06282f
commit
02ba9e19c7
@ -17,7 +17,7 @@ ScheduleHazardRecognizer::HazardType
|
|||||||
Thumb2HazardRecognizer::getHazardType(SUnit *SU) {
|
Thumb2HazardRecognizer::getHazardType(SUnit *SU) {
|
||||||
if (ITBlockSize) {
|
if (ITBlockSize) {
|
||||||
MachineInstr *MI = SU->getInstr();
|
MachineInstr *MI = SU->getInstr();
|
||||||
if (MI != ITBlockMIs[ITBlockSize-1])
|
if (!MI->isDebugValue() && MI != ITBlockMIs[ITBlockSize-1])
|
||||||
return Hazard;
|
return Hazard;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,6 +42,8 @@ void Thumb2HazardRecognizer::EmitInstruction(SUnit *SU) {
|
|||||||
MachineBasicBlock::iterator I = MI;
|
MachineBasicBlock::iterator I = MI;
|
||||||
for (unsigned i = 0; i < ITBlockSize; ++i) {
|
for (unsigned i = 0; i < ITBlockSize; ++i) {
|
||||||
++I;
|
++I;
|
||||||
|
while (I->isDebugValue())
|
||||||
|
++I;
|
||||||
ITBlockMIs[ITBlockSize-1-i] = &*I;
|
ITBlockMIs[ITBlockSize-1-i] = &*I;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user