We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dce36dc + 45b61d1 commit 8d1ac7bCopy full SHA for 8d1ac7b
lib/SILOptimizer/LoopTransforms/LICM.cpp
@@ -654,7 +654,9 @@ void LoopTreeOptimization::analyzeCurrentLoop(
654
case SILInstructionKind::BeginAccessInst: {
655
auto *BI = dyn_cast<BeginAccessInst>(&Inst);
656
assert(BI && "Expected a Begin Access");
657
- BeginAccesses.push_back(BI);
+ if (BI->getEnforcement() == SILAccessEnforcement::Dynamic) {
658
+ BeginAccesses.push_back(BI);
659
+ }
660
checkSideEffects(Inst, MayWrites);
661
break;
662
}
0 commit comments