diff options
author | Davide Italiano <davide@freebsd.org> | 2016-05-15 08:04:28 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-05-15 08:04:28 +0000 |
commit | e62c54375d2e75acaaa1394de99f4f61462e7530 (patch) | |
tree | 9995585c0251b1257e3cd6c3dbec11164530046c /llvm/lib/Transforms/Scalar/SCCP.cpp | |
parent | af52f28d9d9f79789c7be958167a974166fa13ac (diff) | |
download | bcm5719-llvm-e62c54375d2e75acaaa1394de99f4f61462e7530.tar.gz bcm5719-llvm-e62c54375d2e75acaaa1394de99f4f61462e7530.zip |
[PM/SCCP] Fix pass dependencies.
TargetLibraryInfoWrapperPass is a dependency of
SCCP but it's not listed as such. Chandler pointed
out this is an easy mistake to make which only
surfaces in weird crashes with some flag combinations.
This code will go away anyway at some point in the
future, but as long as it's (still) exercised, try
to make it correct.
llvm-svn: 269589
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index e9fe766ba6f..dafaa2af81a 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1573,8 +1573,11 @@ namespace { } // end anonymous namespace char SCCP::ID = 0; -INITIALIZE_PASS(SCCP, "sccp", +INITIALIZE_PASS_BEGIN(SCCP, "sccp", "Sparse Conditional Constant Propagation", false, false) +INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) +INITIALIZE_PASS_END(SCCP, "sccp", + "Sparse Conditional Constant Propagation", false, false) // createSCCPPass - This is the public interface to this file. FunctionPass *llvm::createSCCPPass() { |