[PM] Actually add the new pass manager support for the assumption cache.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 22 Jan 2015 21:53:09 +0000 (21:53 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 22 Jan 2015 21:53:09 +0000 (21:53 +0000)
commit9a78a647768abe6f799c49eb989a63960b78847c
tree334041fc7bfa022f35f35c535331ca877fcf084c
parent1552e50011cd267afa25d17e87268130f7422bed
[PM] Actually add the new pass manager support for the assumption cache.

I had already factored this analysis specifically to enable doing this,
but hadn't actually committed the necessary wiring to get at this from
the new pass manager. This also nicely shows how the separate cache
object can be directly managed by the new pass manager.

This analysis didn't have any direct tests and so I've added a printer
pass and a boring test case. I chose to print the i1 value which is
being assumed rather than the call to llvm.assume as that seems much
more useful for testing... but suggestions on an even better printing
strategy welcome. My main goal was to make sure things actually work. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226868 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/AssumptionCache.h
lib/Analysis/AssumptionCache.cpp
test/Analysis/AssumptionCache/basic.ll [new file with mode: 0644]
tools/opt/PassRegistry.def
tools/opt/Passes.cpp