I have recently stumbled on the following bizarre comment in InstCombinePass::run :
// FIXME: The AliasAnalysis is not yet supported in the new pass manager
with subsequent nullptr instead of AliasAnalysis proper.
Is there any reason on why we do not pass an actual AliasAnalisys instead of that nullptr?
Here is patch that does this: ⚙ D41203 [PM][InstCombine] fixing omission of AliasAnalysis in new-pass-manager's version of InstCombine