[test-suite] r241709 - Revert Polybench/medley/reg_redect print_element

Renato Golin renato.golin at linaro.org
Wed Jul 8 11:50:31 PDT 2015


Author: rengolin
Date: Wed Jul  8 13:50:30 2015
New Revision: 241709

URL: http://llvm.org/viewvc/llvm-project?rev=241709&view=rev
Log:
Revert Polybench/medley/reg_redect print_element

This benchmark got some variance in the results due to the bit-exact
printing of the results and needs investigation. But for now, let's
fix the buildbots.

Modified:
    test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.c
    test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.reference_output

Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.c?rev=241709&r1=241708&r2=241709&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.c Wed Jul  8 13:50:30 2015
@@ -38,19 +38,21 @@ void init_array(int maxgrid,
 
 /* DCE code. Must scan the entire live-out data.
    Can be used also to check the correctness of the output. */
+/* FIXME: This print_array method wasn't converted to use the
+   faster print_element method like the others because it's
+   not bit identical across multiple runs on ARM64. It should be. */
 static
 void print_array(int maxgrid,
 		 DATA_TYPE POLYBENCH_2D(path,MAXGRID,MAXGRID,maxgrid,maxgrid))
 {
   int i, j;
-  char *printmat = malloc(maxgrid*8);
 
-  for (i = 0; i < maxgrid; i++) {
-    for (j = 0; j < maxgrid; j++)
-      print_element(path[i][j], j*8, printmat);
-    fputs(printmat, stderr);
-  }
-  free(printmat);
+  for (i = 0; i < maxgrid; i++)
+    for (j = 0; j < maxgrid; j++) {
+      fprintf (stderr, DATA_PRINTF_MODIFIER, path[i][j]);
+      if ((i * maxgrid + j) % 20 == 0) fprintf (stderr, "\n");
+    }
+  fprintf (stderr, "\n");
 }
 
 

Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.reference_output?rev=241709&r1=241708&r2=241709&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.reference_output (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/medley/reg_detect/reg_detect.reference_output Wed Jul  8 13:50:30 2015
@@ -1 +1 @@
-7f77e12e2f9cf5f1c34d7a8b3d684c52
+eef6cdaf9c1cdebe72d8f267816fad2d





More information about the llvm-commits mailing list