Skip to content

Commit 4a283a8

Browse files
committed
---
yaml --- r: 348109 b: refs/heads/master c: f22391d h: refs/heads/master i: 348107: ffd55b3
1 parent 4d36fbd commit 4a283a8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9f3ff04174b71115c6023c264e58a5358750fc1a
2+
refs/heads/master: f22391df9b26041bb13debb045d400973fc2d882
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILOptimizer/Mandatory/MandatoryInlining.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ class MandatoryInlining : public SILModuleTransform {
945945
ClassHierarchyAnalysis *CHA = getAnalysis<ClassHierarchyAnalysis>();
946946
SILModule *M = getModule();
947947
bool ShouldCleanup = !getOptions().DebugSerialization;
948+
bool SILVerifyAll = getOptions().VerifyAll;
948949
DenseFunctionSet FullyInlinedSet;
949950
ImmutableFunctionSet::Factory SetFactory;
950951

@@ -965,6 +966,13 @@ class MandatoryInlining : public SILModuleTransform {
965966
// The inliner splits blocks at call sites. Re-merge trivial branches
966967
// to reestablish a canonical CFG.
967968
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+
}
968976
}
969977

970978
if (!ShouldCleanup)

0 commit comments

Comments
 (0)