ac/nir: remove dead code in handle_vs_outputs_post()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 8 Feb 2018 13:56:43 +0000 (14:56 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 8 Feb 2018 21:14:22 +0000 (22:14 +0100)
The memcpy can't be reached because the condition is always false.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 62de7e3d018e4fa8e53396574f1f9effd70bcf2b..9aa439a4caba5c077722ef0a759b2750f23933bb 100644 (file)
@@ -6027,14 +6027,7 @@ handle_vs_outputs_post(struct nir_to_llvm_context *ctx,
                        continue;
 
                si_llvm_init_export_args(ctx, values, target, &args);
-
-               if (target >= V_008DFC_SQ_EXP_POS &&
-                   target <= (V_008DFC_SQ_EXP_POS + 3)) {
-                       memcpy(&pos_args[target - V_008DFC_SQ_EXP_POS],
-                              &args, sizeof(args));
-               } else {
-                       ac_build_export(&ctx->ac, &args);
-               }
+               ac_build_export(&ctx->ac, &args);
        }
 
        if (export_prim_id) {