File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -945,6 +945,7 @@ class MandatoryInlining : public SILModuleTransform {
945
945
ClassHierarchyAnalysis *CHA = getAnalysis<ClassHierarchyAnalysis>();
946
946
SILModule *M = getModule ();
947
947
bool ShouldCleanup = !getOptions ().DebugSerialization ;
948
+ bool SILVerifyAll = getOptions ().VerifyAll ;
948
949
DenseFunctionSet FullyInlinedSet;
949
950
ImmutableFunctionSet::Factory SetFactory;
950
951
@@ -965,6 +966,13 @@ class MandatoryInlining : public SILModuleTransform {
965
966
// The inliner splits blocks at call sites. Re-merge trivial branches
966
967
// to reestablish a canonical CFG.
967
968
mergeBasicBlocks (&F);
969
+
970
+ // If we are asked to perform SIL verify all, perform that now so that we
971
+ // can discover the immediate inlining trigger of the problematic
972
+ // function.
973
+ if (SILVerifyAll) {
974
+ F.verify ();
975
+ }
968
976
}
969
977
970
978
if (!ShouldCleanup)
You can’t perform that action at this time.
0 commit comments