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.