File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -765,18 +765,11 @@ class DestroyHoistingPass : public SILFunctionTransform {
765
765
LLVM_DEBUG (llvm::dbgs () << " *** DestroyHoisting on function: "
766
766
<< F->getName () << " ***\n " );
767
767
768
- bool EdgeChanged = splitAllCriticalEdges (*F, nullptr , nullptr );
769
-
770
768
DominanceAnalysis *DA = PM->getAnalysis <DominanceAnalysis>();
771
769
772
770
DestroyHoisting CM (F, DA);
773
771
bool InstChanged = CM.hoistDestroys ();
774
772
775
- if (EdgeChanged) {
776
- // We split critical edges.
777
- invalidateAnalysis (SILAnalysis::InvalidationKind::FunctionBody);
778
- return ;
779
- }
780
773
if (InstChanged) {
781
774
// We moved instructions.
782
775
invalidateAnalysis (SILAnalysis::InvalidationKind::Instructions);
You can’t perform that action at this time.
0 commit comments