diff options
| author | Edwin Török <edwintorok@gmail.com> | 2009-06-17 18:48:18 +0000 |
|---|---|---|
| committer | Edwin Török <edwintorok@gmail.com> | 2009-06-17 18:48:18 +0000 |
| commit | 3ffffac944b5c66effc538f464055642a2d9b38d (patch) | |
| tree | a2e196cb6760bf7b3411748d87482652db262c97 /lib/Transforms | |
| parent | 4bf45c317f290d74a89f192a7be9ab7c3b11c948 (diff) | |
| download | external_llvm-3ffffac944b5c66effc538f464055642a2d9b38d.zip external_llvm-3ffffac944b5c66effc538f464055642a2d9b38d.tar.gz external_llvm-3ffffac944b5c66effc538f464055642a2d9b38d.tar.bz2 | |
Add debug message about non-local loads being clobbered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 9513779..1e89ef7 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -952,8 +952,14 @@ bool GVN::processNonLocalLoad(LoadInst *LI, // If we had a phi translation failure, we'll have a single entry which is a // clobber in the current block. Reject this early. - if (Deps.size() == 1 && Deps[0].second.isClobber()) + if (Deps.size() == 1 && Deps[0].second.isClobber()) { + DEBUG( + DOUT << "GVN: non-local load "; + WriteAsOperand(*DOUT.stream(), LI); + DOUT << " is clobbered by " << *Deps[0].second.getInst(); + ); return false; + } // Filter out useless results (non-locals, etc). Keep track of the blocks // where we have a value available in repl, also keep track of whether we see |
