# HG changeset patch # User Tom Rodriguez # Date 1388795937 28800 # Node ID 622af5fb8c58a9cfd359ec952831039efde7e83a # Parent eefb0224149dba8cd121a20a17731006e2b6d399 filter illegal toIntervals when verifying MoveResolver diff -r eefb0224149d -r 622af5fb8c58 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java Thu Jan 02 14:53:19 2014 -0800 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/MoveResolver.java Fri Jan 03 16:38:57 2014 -0800 @@ -23,13 +23,11 @@ package com.oracle.graal.compiler.alloc; import static com.oracle.graal.api.code.ValueUtil.*; - import java.util.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.debug.*; -import com.oracle.graal.debug.internal.*; import com.oracle.graal.lir.*; /** @@ -121,13 +119,12 @@ usedRegs.clear(); for (i = 0; i < mappingTo.size(); i++) { Interval interval = mappingTo.get(i); + if (isIllegal(interval.location())) { + // After insertion the location may become illegal, so don't check it since multiple + // intervals might be illegal. + continue; + } boolean unique = usedRegs.add(interval.location()); - if (!unique) { - DebugScope.dump(this.allocator.ir, "exception"); - DebugScope.dump(this.allocator.intervals, "exception"); - DebugScope.dump(interval, "interval"); - System.err.println(interval); - } assert unique : "cannot write to same register twice"; }