Revert "Recommit "[GlobalOpt] Pass DTU to removeUnreachableBlocks instead of recomput...
authorFlorian Hahn <flo@fhahn.com>
Tue, 14 Jan 2020 14:50:07 +0000 (14:50 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 14 Jan 2020 14:50:07 +0000 (14:50 +0000)
commit192cce10f67e4f22be6d9b8c0975f78ad246d1bd
treeec49d3c2cf9f18c69da5750d3a77f8f7739472ed
parent92451f0904ceab1d81d71a9f17ab366bf57eddc7
Revert "Recommit "[GlobalOpt] Pass DTU to removeUnreachableBlocks instead of recomputing.""

This reverts commit a03d7b0f24b65d69721dbbbc871df0629efcf774.

As discussed in D68298, this causes a compile-time regression, in case
the DTs requested are not used elsewhere in GlobalOpt. We should only
get the DTs if they are available here, but this seems not possible with
the legacy pass manager from a module pass.
llvm/lib/Transforms/IPO/GlobalOpt.cpp