andrew.w.kaylor added a comment. I have just created a new differential (http://reviews.llvm.org/D19172) which implements the optnone-based approach. Assuming we agree that approach is preferable, that patch will supersede this one. Repository: rL LLVM http://reviews.llvm.org/D18576