Class BlockProcessor

    • Constructor Detail

      • BlockProcessor

        public BlockProcessor()
    • Method Detail

      • updateBlocksData

        public static void updateBlocksData​(MethodNode mth)
        Recalculate all additional info attached to blocks:
         - dominators
         - dominance frontier
         - post dominators (only if AFlag.COMPUTE_POST_DOM added to method)
         - loops and nested loop info
         

        This method should be called after changing a block tree in custom passes added before BlockFinisher.

      • removeMarkedBlocks

        public static void removeMarkedBlocks​(MethodNode mth)
      • removeUnreachableBlock

        public static void removeUnreachableBlock​(BlockNode blockToRemove,
                                                  MethodNode mth)