mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-19 15:29:48 +00:00
Working on predictability in output
This commit is contained in:
parent
5c1aa7a2e7
commit
1dfbcd1ca4
@ -165,6 +165,13 @@ public class Pass2AliasElimination extends Pass2SsaOptimization {
|
|||||||
|
|
||||||
public Variable getKeepVar() {
|
public Variable getKeepVar() {
|
||||||
Variable keep = null;
|
Variable keep = null;
|
||||||
|
List<Variable> vars = new ArrayList<>(this.vars);
|
||||||
|
Collections.sort(vars, new Comparator<Variable>() {
|
||||||
|
@Override
|
||||||
|
public int compare(Variable o1, Variable o2) {
|
||||||
|
return o1.getFullName().compareTo(o2.getFullName());
|
||||||
|
}
|
||||||
|
});
|
||||||
for (Variable var : vars) {
|
for (Variable var : vars) {
|
||||||
if (keep == null) {
|
if (keep == null) {
|
||||||
keep = var;
|
keep = var;
|
||||||
|
Loading…
Reference in New Issue
Block a user