diff options
author | Manman Ren <mren@apple.com> | 2012-09-06 19:55:56 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-09-06 19:55:56 +0000 |
commit | cc77eece74c8db09acc2af425e7e6c88a5bb30d1 (patch) | |
tree | fcdc8d3ddb7ffe93d8129485a2068c6dfeaac9fd /lib/Transforms/Scalar/GVN.cpp | |
parent | c8ecb401caefc5fb97b20041544d8da5d8e2f830 (diff) | |
download | llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.tar.gz llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.tar.bz2 llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.tar.xz |
Release build: guard dump functions with "ifndef NDEBUG"
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/GVN.cpp')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 558bd35933..bce43bbdae 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -632,6 +632,7 @@ INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfo) INITIALIZE_AG_DEPENDENCY(AliasAnalysis) INITIALIZE_PASS_END(GVN, "gvn", "Global Value Numbering", false, false) +#ifndef NDEBUG void GVN::dump(DenseMap<uint32_t, Value*>& d) { errs() << "{\n"; for (DenseMap<uint32_t, Value*>::iterator I = d.begin(), @@ -641,6 +642,7 @@ void GVN::dump(DenseMap<uint32_t, Value*>& d) { } errs() << "}\n"; } +#endif /// IsValueFullyAvailableInBlock - Return true if we can prove that the value /// we're analyzing is fully available in the specified block. As we go, keep |