AddDiscriminatorsPass not in O0 pipeline under NPM


It seems that, under NPM, AddDiscriminatorsPass is not added into the O0 pipeline (buildO0DefaultPipeline). However, for legacy PM, the pass is in the O0 pipeline (need to specify -fdebug-info-for-profiling). It is hard to tell if it is intentional ( So my question is does it make sense to support such configuration (for parity with legacy PM and completeness) or we leave it as is? Any specific use cases for that?


That’s probably not an intentional difference, if you’d like to add that to the NPM feel free to send out a patch.

Thanks. Sent