summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantProp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 21:27:06 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 21:27:06 +0000
commitf12cc842b3a4de395fdf19ca25d9fa972ac67eea (patch)
treeb909800b5956c25a5a10f21e505e56dc473a3a38 /llvm/lib/Transforms/Scalar/ConstantProp.cpp
parenta452f86593f4bd667e9056add765131b4bcc8e20 (diff)
downloadbcm5719-llvm-f12cc842b3a4de395fdf19ca25d9fa972ac67eea.tar.gz
bcm5719-llvm-f12cc842b3a4de395fdf19ca25d9fa972ac67eea.zip
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA
llvm-svn: 2386
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ConstantProp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
index 0f1d0aea323..a8dbe3ff955 100644
--- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
@@ -219,6 +219,12 @@ namespace {
return Modified;
}
+
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ // FIXME: This pass does not preserve the CFG because it folds terminator
+ // instructions!
+ //AU.preservesCFG();
+ }
};
}
OpenPOWER on IntegriCloud