mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Create FunctionAnalysisBase to handle the boiler plate of caching and invalidating function specific analysis.
Swift SVN r26642
This commit is contained in:
@@ -956,7 +956,7 @@ class COWArrayOptPass : public SILFunctionTransform {
|
||||
DominanceAnalysis *DA = PM->getAnalysis<DominanceAnalysis>();
|
||||
SILLoopAnalysis *LA = PM->getAnalysis<SILLoopAnalysis>();
|
||||
auto *RCIA =
|
||||
PM->getAnalysis<RCIdentityAnalysis>()->getRCInfo(getFunction());
|
||||
PM->getAnalysis<RCIdentityAnalysis>()->get(getFunction());
|
||||
SILLoopInfo *LI = LA->getLoopInfo(getFunction());
|
||||
if (LI->empty()) {
|
||||
DEBUG(llvm::dbgs() << " Skipping Function: No loops.\n");
|
||||
|
||||
Reference in New Issue
Block a user