OSDN Git Service

Use FPasses in opt exactly when it is initialized.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Wed, 15 Jun 2016 10:32:00 +0000 (10:32 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Wed, 15 Jun 2016 10:32:00 +0000 (10:32 +0000)
commitbed36c4198ada058860d516d01f12f8916723827
treefd9a6fda05c5890b59a6cda8e0ec1ebde9085d4e
parent5ffd0983e449456e378c93d74d4eb32536599dbf
Use FPasses in opt exactly when it is initialized.

Previously, there was a discrepancy between the population of function
passes in FPasses, and their invocation. Function passes specified on
the command line, after an optimizaton level was simply discared. This
fix PR27509.

Patch by Jesper Antonsson.

Differential Review: http://reviews.llvm.org/D20725

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272770 91177308-0d34-0410-b5e6-96231b3b80d8
tools/opt/opt.cpp