glsl2: Remove a couple FINISHME comments that have already been resolved
[mesa.git] / src / glsl / ir_dead_code_local.cpp
index b22cc558df6392f88e6beccebcc135b4e3ddf52b..4bbedf0ff946e50c222c6aa1d69a228384c3e3e5 100644 (file)
@@ -156,7 +156,12 @@ process_assignment(void *ctx, ir_assignment *ir, exec_list *assignments)
       }
    }
 
-   /* Add this instruction to the assignment list. */
+   /* Add this instruction to the assignment list available to be removed.
+    * But not if the assignment has other side effects.
+    */
+   if (ir_has_call(ir))
+      return progress;
+
    assignment_entry *entry = new(ctx) assignment_entry(var, ir);
    assignments->push_tail(entry);