# HG changeset patch # User Thomas Wuerthinger # Date 1305815994 -7200 # Node ID 23d0bcfa3c84c9e198ecce7e9e524ea61c34de97 # Parent 3fbe58ac818d85d2fb6640a5cabb9e0c4914fd9b Removed two BlockBegin flags. diff -r 3fbe58ac818d -r 23d0bcfa3c84 graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java --- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java Thu May 19 16:37:32 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java Thu May 19 16:39:54 2011 +0200 @@ -80,8 +80,6 @@ * An enumeration of flags for block entries indicating various things. */ public enum BlockFlag { - StandardEntry, - BackwardBranchTarget, ParserLoopHeader, LinearScanLoopHeader, LinearScanLoopEnd; diff -r 3fbe58ac818d -r 23d0bcfa3c84 graal/GraalCompiler/src/com/sun/c1x/ir/ComputeLinearScanOrder.java --- a/graal/GraalCompiler/src/com/sun/c1x/ir/ComputeLinearScanOrder.java Thu May 19 16:37:32 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/ComputeLinearScanOrder.java Thu May 19 16:39:54 2011 +0200 @@ -144,7 +144,6 @@ assert parent != null : "must have parent"; cur.setBlockFlag(BlockBegin.BlockFlag.LinearScanLoopHeader); - cur.setBlockFlag(BlockBegin.BlockFlag.BackwardBranchTarget); parent.setBlockFlag(BlockBegin.BlockFlag.LinearScanLoopEnd); @@ -380,9 +379,6 @@ if (!cur.checkBlockFlag(BlockBegin.BlockFlag.LinearScanLoopEnd)) { assert cur.linearScanNumber() < sux.linearScanNumber() : "invalid order"; } - //if (cur.loopDepth() == sux.loopDepth()) { - // assert cur.loopIndex() == sux.loopIndex() || sux.checkBlockFlag(BlockBegin.BlockFlag.LinearScanLoopHeader) : "successing blocks with same loop depth must have same loop index"; - //} } for (Instruction pred : cur.blockPredecessors()) { @@ -391,32 +387,9 @@ if (!cur.checkBlockFlag(BlockBegin.BlockFlag.LinearScanLoopHeader)) { assert cur.linearScanNumber() > begin.linearScanNumber() : "invalid order"; } - //if (cur.loopDepth() == begin.loopDepth()) { - // assert cur.loopIndex() == begin.loopIndex() || cur.checkBlockFlag(BlockBegin.BlockFlag.LinearScanLoopHeader) : "successing blocks with same loop depth must have same loop index"; - //} } } - // check that all loops are continuous -// for (int loopIdx = 0; loopIdx < numLoops; loopIdx++) { -// int blockIdx = 0; -// assert !isBlockInLoop(loopIdx, linearScanOrder.get(blockIdx)) : "the first block must not be present in any loop"; -// -// // skip blocks before the loop -// while (blockIdx < numBlocks && !isBlockInLoop(loopIdx, linearScanOrder.get(blockIdx))) { -// blockIdx++; -// } -// // skip blocks of loop -// while (blockIdx < numBlocks && isBlockInLoop(loopIdx, linearScanOrder.get(blockIdx))) { -// blockIdx++; -// } -// // after the first non-loop block : there must not be another loop-block -// while (blockIdx < numBlocks) { -// assert !isBlockInLoop(loopIdx, linearScanOrder.get(blockIdx)) : "loop not continuous in linear-scan order"; -// blockIdx++; -// } -// } - return true; } }