OSDN Git Service

[PM] Don't require analysis results to be const in the new pass manager.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 5 Feb 2014 21:41:42 +0000 (21:41 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 5 Feb 2014 21:41:42 +0000 (21:41 +0000)
commit77b655c1c9b155441e34813223f172fa5a57891b
tree88b6c32da39fba9b5a09765aa336fd2233d00176
parentf39297678b212ab5ee7885474762fc8c3f6c370f
[PM] Don't require analysis results to be const in the new pass manager.

I think this was just over-eagerness on my part. The analysis results
need to often be non-const because they need to (in some cases at least)
be updated by the transformation pass in order to remain correct. It
also makes lazy analyses (a common case) needlessly annoying to write in
order to make their entire state mutable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200881 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManager.h
lib/IR/PassManager.cpp
unittests/IR/PassManagerTest.cpp