mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 08:27:21 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3d108b39a
commit
31f1cc5790
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user