r344412 fixed a huge compile time regression but it needs ModifiedDT flag
to be maintained correctly in optimizations in optimizeBlock() and optimizeInst().
optimizeSelectInst() does not updated the flag ( it updates a different ModifiedDT in CodeGenPrepare class).
This patche propagates the flag in optimizeSelectInst() back to optimizeBlock().
I also change the name of ModifiedDT in CodeGenPrepare class to avoid confusion. It seems ModifiedDT in CodeGenPrepare class is not being used anywhere. We may want to delete it.
I'd either remove this completely, since it isn't used, or migrate to using this instead of passing around a flag parameter.