mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix bug in global value numbering optimization
This commit is contained in:
parent
60e5c0bbce
commit
d6780ea637
|
@ -549,6 +549,7 @@ public class GlobalValueNumbering implements MethodOptimization {
|
|||
if (namesPreserved) {
|
||||
if (insn.getReceiver().getDebugName() != null && insn.getAssignee().getDebugName() != null) {
|
||||
if (!insn.getAssignee().getDebugName().equals(insn.getReceiver().getDebugName())) {
|
||||
insn.setAssignee(program.variableAt(replaceMap[insn.getAssignee().getIndex()]));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user