summaryrefslogtreecommitdiff
path: root/src/passes
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes')
-rw-r--r--src/passes/CodePushing.cpp4
-rw-r--r--src/passes/Vacuum.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/CodePushing.cpp b/src/passes/CodePushing.cpp
index 7af192838..55c955539 100644
--- a/src/passes/CodePushing.cpp
+++ b/src/passes/CodePushing.cpp
@@ -160,7 +160,7 @@ private:
firstPushable < pushPoint);
// everything that matters if you want to be pushed past the pushPoint
EffectAnalyzer cumulativeEffects(passOptions, features);
- cumulativeEffects.analyze(list[pushPoint]);
+ cumulativeEffects.walk(list[pushPoint]);
// it is ok to ignore the branching here, that is the crucial point of this
// opt
// TODO: it would be ok to ignore thrown exceptions here, if we know they
@@ -194,7 +194,7 @@ private:
}
} else {
// something that can't be pushed, so it might block further pushing
- cumulativeEffects.analyze(list[i]);
+ cumulativeEffects.walk(list[i]);
}
assert(i > 0);
i--;
diff --git a/src/passes/Vacuum.cpp b/src/passes/Vacuum.cpp
index fcfa944de..e0c00e0da 100644
--- a/src/passes/Vacuum.cpp
+++ b/src/passes/Vacuum.cpp
@@ -116,7 +116,7 @@ struct Vacuum : public WalkerPass<ExpressionStackWalker<Vacuum>> {
// binaries have implicit traps
if (auto* unary = curr->dynCast<Unary>()) {
EffectAnalyzer tester(getPassOptions(), features);
- tester.visitUnary(unary);
+ tester.visit(unary);
if (tester.hasSideEffects()) {
return curr;
}
@@ -129,7 +129,7 @@ struct Vacuum : public WalkerPass<ExpressionStackWalker<Vacuum>> {
}
} else if (auto* binary = curr->dynCast<Binary>()) {
EffectAnalyzer tester(getPassOptions(), features);
- tester.visitBinary(binary);
+ tester.visit(binary);
if (tester.hasSideEffects()) {
return curr;
}