File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
trunk/lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9f3ff04174b71115c6023c264e58a5358750fc1a
2
+ refs/heads/master: f22391df9b26041bb13debb045d400973fc2d882
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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