Пример #1
0
        public override bool Optimize(List <BaseBlock> codeBlocks)
        {
            var CFG = new ControlFlowGraph(codeBlocks);

            var Invals = CFG.GenerateInputOutputValues().Item1;

            bool ret = false;

            for (int i = 0; i < codeBlocks.Count; ++i)
            {
                if (OptimizeBlock(codeBlocks[i], Invals[i]))
                {
                    ret = true;
                }
            }

            return(ret);
        }