summaryrefslogtreecommitdiff
path: root/src/passes
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes')
-rw-r--r--src/passes/CoalesceLocals.cpp3
-rw-r--r--src/passes/SpillPointers.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/passes/CoalesceLocals.cpp b/src/passes/CoalesceLocals.cpp
index 9bc635f80..232685001 100644
--- a/src/passes/CoalesceLocals.cpp
+++ b/src/passes/CoalesceLocals.cpp
@@ -92,6 +92,9 @@ struct CoalesceLocals
};
void CoalesceLocals::doWalkFunction(Function* func) {
+ if (!canRun(func)) {
+ return;
+ }
super::doWalkFunction(func);
// prioritize back edges
increaseBackEdgePriorities();
diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp
index 758ca3223..7458f5fbd 100644
--- a/src/passes/SpillPointers.cpp
+++ b/src/passes/SpillPointers.cpp
@@ -65,6 +65,9 @@ struct SpillPointers
// main entry point
void doWalkFunction(Function* func) {
+ if (!canRun(func)) {
+ return;
+ }
super::doWalkFunction(func);
spillPointers();
}