summaryrefslogtreecommitdiff
path: root/src/passes/LocalCSE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LocalCSE.cpp')
-rw-r--r--src/passes/LocalCSE.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/LocalCSE.cpp b/src/passes/LocalCSE.cpp
index 32cc97b34..1338c6571 100644
--- a/src/passes/LocalCSE.cpp
+++ b/src/passes/LocalCSE.cpp
@@ -41,9 +41,10 @@
#include <wasm-builder.h>
#include <wasm-traversal.h>
#include <pass.h>
-#include <ir/effects.h>
#include <ir/cost.h>
+#include <ir/effects.h>
#include <ir/equivalent_sets.h>
+#include "ir/flat.h"
#include <ir/hashed.h>
namespace wasm {
@@ -75,6 +76,7 @@ struct LocalCSE : public WalkerPass<LinearExecutionWalker<LocalCSE>> {
bool anotherPass;
void doWalkFunction(Function* func) {
+ Flat::verifyFlatness(func);
anotherPass = true;
// we may need multiple rounds
while (anotherPass) {