Added methods to enable more optimizations in PassManager. (#141)