[NPM] Add -enable-loopinterchange option to NPM
authorTa-Wei Tu <tu.da.wei@gmail.com>
Sat, 6 Mar 2021 18:37:54 +0000 (02:37 +0800)
committerTa-Wei Tu <tu.da.wei@gmail.com>
Sat, 6 Mar 2021 18:39:28 +0000 (02:39 +0800)
commit8a003861a31af171974f9831d26d94f2ae964497
tree935c2a291c907fa4f291d20c9c3b5508484f1eab
parentb46c89892fe25bec197fd30f09b3a312da126422
[NPM] Add -enable-loopinterchange option to NPM

We have the `enable-loopinterchange` option in legacy pass manager but not in NPM.
Add `LoopInterchange` pass to the optimization pipeline (at the same position as before)
when `enable-loopinterchange` is turned on.

Reviewed By: aeubanks, fhahn

Differential Revision: https://reviews.llvm.org/D98116
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp