mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[LICM] Only add dynamic begin_access checks to the list of access scopes to be analyzed
This should provide slight compile-time improvement
This commit is contained in:
@@ -654,7 +654,9 @@ void LoopTreeOptimization::analyzeCurrentLoop(
|
||||
case SILInstructionKind::BeginAccessInst: {
|
||||
auto *BI = dyn_cast<BeginAccessInst>(&Inst);
|
||||
assert(BI && "Expected a Begin Access");
|
||||
BeginAccesses.push_back(BI);
|
||||
if (BI->getEnforcement() == SILAccessEnforcement::Dynamic) {
|
||||
BeginAccesses.push_back(BI);
|
||||
}
|
||||
checkSideEffects(Inst, MayWrites);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user