aco: don't CSE s_memtime
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 10 Oct 2019 16:04:47 +0000 (17:04 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 16 Oct 2019 14:31:19 +0000 (15:31 +0100)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection.cpp

index bdb7e2a549e4b7470209d3fd8b3210536ddf54b9..0c952739fa2b1ff7e16b53fb4ff393bdd7dd7cb7 100644 (file)
@@ -5839,7 +5839,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
       break;
    }
    case nir_intrinsic_shader_clock:
-      bld.smem(aco_opcode::s_memtime, Definition(get_ssa_temp(ctx, &instr->dest.ssa)));
+      bld.smem(aco_opcode::s_memtime, Definition(get_ssa_temp(ctx, &instr->dest.ssa)), false);
       break;
    case nir_intrinsic_load_vertex_id_zero_base: {
       Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);