Add GlobalsAA as preserved to a bunch of transforms
commit3c17729000ca3ffc8426567ff357c68d766197a3
authorJames Molloy <james.molloy@arm.com>
Thu, 10 Sep 2015 10:22:12 +0000 (10 10:22 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 10 Sep 2015 10:22:12 +0000 (10 10:22 +0000)
tree41434f2ed895e07ddf0949b48407ef09c2130dd6
parent790d0549efbb54ad41353c9a9954cfd782e371d3
Add GlobalsAA as preserved to a bunch of transforms

GlobalsAA must by definition be preserved in function passes, but the passmanager doesn't know that. Make each pass explicitly preserve GlobalsAA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247263 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Transforms/Scalar/ADCE.cpp
lib/Transforms/Scalar/BDCE.cpp
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
lib/Transforms/Scalar/EarlyCSE.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp
lib/Transforms/Scalar/JumpThreading.cpp
lib/Transforms/Scalar/LoopDeletion.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
lib/Transforms/Scalar/LoopUnswitch.cpp
lib/Transforms/Scalar/Reassociate.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Scalar/SimplifyCFGPass.cpp
lib/Transforms/Scalar/TailRecursionElimination.cpp