mirror of
https://github.com/intel/intel-graphics-compiler.git
synced 2025-11-04 08:21:06 +08:00
Skip dbg calls for vector aliasing heuristic
When we're calculating instructions count in BB, we should skip `dbg` calls, because we cross threshold for ScalarAliasBBSizeThreshold, and we disable scalar aliasing in case with `-g`.
This commit is contained in:
committed by
igcbot
parent
ad36cbf9eb
commit
004620394e
@ -1732,5 +1732,7 @@ bool VariableReuseAnalysis::checkSubAlign(e_alignment& BaseAlign,
|
||||
bool VariableReuseAnalysis::skipScalarAliaser(BasicBlock* BB, Value* ScalarVal) const
|
||||
{
|
||||
Instruction* I = dyn_cast<Instruction>(ScalarVal);
|
||||
return ((BB->size() > m_BBSizeThreshold) || !I || I->getParent() != BB);
|
||||
// Don't count dbg instructions in BB
|
||||
unsigned InstCountInBB = BB->sizeWithoutDebug();
|
||||
return ((InstCountInBB > m_BBSizeThreshold) || !I || I->getParent() != BB);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user