summaryrefslogtreecommitdiff
path: root/src/passes/Precompute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Precompute.cpp')
-rw-r--r--src/passes/Precompute.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index 355af7ed0..dceb45fb2 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -229,6 +229,10 @@ private:
if (curr->type.isRef()) {
return Flow(NONCONSTANT_FLOW);
}
+ // Don't try to precompute an Rtt. TODO figure out when that would be safe
+ if (curr->type.isRtt()) {
+ return Flow(NONCONSTANT_FLOW);
+ }
try {
return PrecomputingExpressionRunner(
getModule(), getValues, replaceExpression)