mehdi_amini added a comment. `-dump-pass=Structure` could be a good test. There are already test that checks the pass pipeline that may be extended to test this option I think. http://reviews.llvm.org/D21005