summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/CGSCCPassManager.cpp2
-rw-r--r--llvm/unittests/Analysis/CGSCCPassManagerTest.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp
index 9db1e95ece7..3ddefc6520a 100644
--- a/llvm/lib/Analysis/CGSCCPassManager.cpp
+++ b/llvm/lib/Analysis/CGSCCPassManager.cpp
@@ -373,7 +373,7 @@ incorporateNewSCCRange(const SCCRangeT &NewSCCRange, LazyCallGraph &G,
// Ensure new SCCs' function analyses are updated.
if (NeedFAMProxy)
- updateNewSCCFunctionAnalyses(*C, G, AM);
+ updateNewSCCFunctionAnalyses(NewC, G, AM);
// Also propagate a normal invalidation to the new SCC as only the current
// will get one from the pass manager infrastructure.
diff --git a/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp b/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
index 1e262683f2b..d46d9535fa4 100644
--- a/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
+++ b/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
@@ -1261,12 +1261,12 @@ TEST_F(CGSCCPassManagerTest, TestAnalysisInvalidationCGSCCUpdate) {
// split their SCCs. Then we re-run over the whole module. Then we re-run
// over three functions merged back into a single SCC, and then over the
// whole module again.
- EXPECT_EQ(6 + 2 + 6 + 3 + 6, FunctionAnalysisRuns);
+ EXPECT_EQ(6 + 3 + 6 + 3 + 6, FunctionAnalysisRuns);
- // Re run the function analysis twice over the entire module, and then re-run
- // it over the `(h3, h1, h2)` SCC due to invalidation. Then we re-un over
- // three functions merged back into a single SCC, and then over the whole
- // module.
- EXPECT_EQ(6 + 2 + 6 + 3 + 6, IndirectFunctionAnalysisRuns);
+ // Re run the function analysis over the entire module, and then re-run it
+ // over the `(h3, h1, h2)` SCC due to invalidation. Then we re-run it over
+ // the entire module, then the three functions merged back into a single SCC,
+ // and then over the whole module.
+ EXPECT_EQ(6 + 3 + 6 + 3 + 6, IndirectFunctionAnalysisRuns);
}
}
OpenPOWER on IntegriCloud