intel/compiler: Pass detailed dependency classes to invalidate_analysis()
[mesa.git] / src / intel / compiler / brw_vec4_copy_propagation.cpp
index 63155ecdfb016546e94fecfedf976fe2ac6bd8a4..597e75c8b899e51815f8965ba82b3c0bd28a7cda 100644 (file)
@@ -190,7 +190,7 @@ try_constant_propagate(const struct gen_device_info *devinfo,
       inst->src[arg] = value;
       return true;
 
-   case SHADER_OPCODE_UNTYPED_ATOMIC:
+   case VEC4_OPCODE_UNTYPED_ATOMIC:
       if (arg == 1) {
          inst->src[arg] = value;
          return true;
@@ -559,7 +559,8 @@ vec4_visitor::opt_copy_propagation(bool do_constant_prop)
    }
 
    if (progress)
-      invalidate_live_intervals();
+      invalidate_analysis(DEPENDENCY_INSTRUCTION_DATA_FLOW |
+                          DEPENDENCY_INSTRUCTION_DETAIL);
 
    return progress;
 }