# HG changeset patch # User Josef Eisl # Date 1402507356 -7200 # Node ID 73d7935be896b67d165f27175a3a15ed0838df9b # Parent 3a997f63ddacd67c25ecc70ad2252e8b091d18ad LSRA: add debug scope for eliminateSpillMoves() and assignLocations(). diff -r 3a997f63ddac -r 73d7935be896 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Wed Jun 11 19:21:05 2014 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Wed Jun 11 19:22:36 2014 +0200 @@ -1953,8 +1953,17 @@ verify(); } - eliminateSpillMoves(); - assignLocations(); + try (Scope s1 = Debug.scope("EliminateSpillMove")) { + eliminateSpillMoves(); + } catch (Throwable e) { + throw Debug.handle(e); + } + + try (Scope s1 = Debug.scope("AssignLocations")) { + assignLocations(); + } catch (Throwable e) { + throw Debug.handle(e); + } if (DetailedAsserts.getValue()) { verifyIntervals();