[Matrix] Only run matrix lowering early with -O0.
authorFlorian Hahn <flo@fhahn.com>
Fri, 17 Jul 2020 14:50:47 +0000 (15:50 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 17 Jul 2020 14:53:16 +0000 (15:53 +0100)
commit31d71c69f1b1da99f99073785a0292820ec34045
tree8af74fcd732fdebeb637dfb1c6ba7159f3c131c0
parent8475981b309165fbcc12b764ec5aee2ca13c2ea3
[Matrix] Only run matrix lowering early with -O0.

Currently matrix lowering is run twice if OptLevel > 0. Fix that and
also add a test for OptLevel > 0 with matrix lowering enabled.
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Other/opt-O3-pipeline-enable-matrix.ll [new file with mode: 0644]