mirror of
https://github.com/irmen/prog8.git
synced 2026-04-20 11:17:01 +00:00
IR: don't lose inline asm chunks, fix carry behavior for multi-shifts
This commit is contained in:
@@ -199,6 +199,8 @@ class IRPeepholeOptimizer(private val irprog: IRProgram) {
|
||||
IRInlineAsmChunk(label, candidate.assembly, candidate.isIR, candidate.next)
|
||||
else
|
||||
candidate
|
||||
} else {
|
||||
chunks += candidate
|
||||
}
|
||||
}
|
||||
is IRInlineBinaryChunk -> {
|
||||
@@ -210,6 +212,8 @@ class IRPeepholeOptimizer(private val irprog: IRProgram) {
|
||||
IRInlineBinaryChunk(label, candidate.data, candidate.next)
|
||||
else
|
||||
candidate
|
||||
} else {
|
||||
chunks += candidate
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user