File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -789,6 +789,10 @@ InlineCost swift::instructionInlineCost(SILInstruction &I) {
789
789
case SILInstructionKind::GetAsyncContinuationInst:
790
790
return InlineCost::Free;
791
791
792
+ // Unconditional branch is free.
793
+ case SILInstructionKind::BranchInst:
794
+ return InlineCost::Free;
795
+
792
796
case SILInstructionKind::AbortApplyInst:
793
797
case SILInstructionKind::ApplyInst:
794
798
case SILInstructionKind::TryApplyInst:
@@ -804,7 +808,6 @@ InlineCost swift::instructionInlineCost(SILInstruction &I) {
804
808
case SILInstructionKind::WitnessMethodInst:
805
809
case SILInstructionKind::AssignInst:
806
810
case SILInstructionKind::AssignByWrapperInst:
807
- case SILInstructionKind::BranchInst:
808
811
case SILInstructionKind::CheckedCastBranchInst:
809
812
case SILInstructionKind::CheckedCastValueBranchInst:
810
813
case SILInstructionKind::CheckedCastAddrBranchInst:
You can’t perform that action at this time.
0 commit comments