PGO: add support for checked_cast__br

This commit is contained in:
Joe Shajrawi
2017-09-15 19:12:26 -07:00
parent 64830c2d5e
commit f4e6bb3725
13 changed files with 97 additions and 46 deletions

View File

@@ -1665,7 +1665,7 @@ void PatternMatchEmission::emitIsDispatch(ArrayRef<RowToSpecialize> rows,
assert(!SGF.B.hasValidInsertionPoint() && "did not end block");
},
// Failure block: branch out to the continuation block.
[&] { (*innerFailure)(loc); });
[&] { (*innerFailure)(loc); }, rows[0].Count);
}
/// Perform specialized dispatch for a sequence of EnumElementPattern or an