diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/CodePushing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/CodePushing.cpp b/src/passes/CodePushing.cpp index c71078558..1b253c6ea 100644 --- a/src/passes/CodePushing.cpp +++ b/src/passes/CodePushing.cpp @@ -134,14 +134,14 @@ private: return nullptr; } - // Push past conditional control flow. + // Try to push past conditional control flow. // TODO: push into ifs as well bool isPushPoint(Expression* curr) { // look through drops if (auto* drop = curr->dynCast<Drop>()) { curr = drop->value; } - if (curr->is<If>()) { + if (curr->is<If>() || curr->is<BrOn>()) { return true; } if (auto* br = curr->dynCast<Break>()) { |