Fix performance issue in colocate_predecessor_trees pass, remove the use of in_node_mode and Node::IsExit() method.
Fix performance issue in colocate_predecessor_trees pass, remove the use of in_node_mode and Node::IsExit() method.
