diff options
author | Adam Nemet <anemet@apple.com> | 2015-03-10 21:47:39 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-03-10 21:47:39 +0000 |
commit | 4bb90a71de35edc631cba1aaaf8baad2fda46cdd (patch) | |
tree | 351ce25a1294652d365a2ae2ff5ffe0307cc6220 /llvm/lib | |
parent | ceb96a4cb8eb7ac5e0fefb7f39c54d537a407113 (diff) | |
download | bcm5719-llvm-4bb90a71de35edc631cba1aaaf8baad2fda46cdd.tar.gz bcm5719-llvm-4bb90a71de35edc631cba1aaaf8baad2fda46cdd.zip |
[LoopAccesses] Add debug message to indicate the result of the analysis
The debug message was pretty confusing here. It only reported the
situation with memchecks without the result of the dependence analysis.
Now it prints whether the loop is safe from the POV of the dependence
analysis and if yes, whether we need memchecks.
llvm-svn: 231854
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 49bf9d6fc3e..04c28bc3d76 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -1161,12 +1161,15 @@ void LoopAccessInfo::analyzeLoop(const ValueToValueMap &Strides) { } } - if (!CanVecMem) + if (CanVecMem) + DEBUG(dbgs() << "LAA: No unsafe dependent memory operations in loop. We" + << (NeedRTCheck ? "" : " don't") + << " need a runtime memory check.\n"); + else { emitAnalysis(LoopAccessReport() << "unsafe dependent memory operations in loop"); - - DEBUG(dbgs() << "LAA: We" << (NeedRTCheck ? "" : " don't") << - " need a runtime memory check.\n"); + DEBUG(dbgs() << "LAA: unsafe dependent memory operations in loop\n"); + } } bool LoopAccessInfo::blockNeedsPredication(BasicBlock *BB, Loop *TheLoop, |