mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-03 12:07:26 +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() {
|
||||
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) {
|
||||
if (keep == null) {
|
||||
keep = var;
|
||||
|
Loading…
Reference in New Issue
Block a user