This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add quality tracking for profile counter


On Jun 19 2017, Jan Hubicka <hubicka@ucw.cz> wrote:

> this patch makes us to track quality of the profile.  This is useful
> to disable some agressive optimizations when counts are known to be
> unreliable.

This breaks bootstrap on ia64 with a comparison failure in value-prof.o.

The only difference is in gimple_value_profile_transformations:

@@ -8962,14 +8962,14 @@ Disassembly of section .text:
     ad06:	10 00 a0 01 42 80 	            mov r1=r104
     ad0c:	0d e0 02 84       	            mov r108=r92;;
     ad10:	09 00 cc 1c 90 11 	[MMI]       st4 [r14]=r51
-    ad16:	e0 00 20 30 20 60 	            ld8 r14=[r8]
+    ad16:	00 00 00 02 00 60 	            nop.m 0x0
     ad1c:	0d 08 01 84       	            mov r107=r33;;
-    ad20:	0b 70 d8 1c 0c 20 	[MMI]       and r14=r54,r14;;
-    ad26:	e0 38 39 1c 40 00 	            or r14=r39,r14
+    ad20:	0b 70 00 10 18 10 	[MMI]       ld8 r14=[r8];;
+    ad26:	e0 b0 39 18 40 00 	            and r14=r54,r14
     ad2c:	00 00 04 00       	            nop.i 0x0;;
-    ad30:	01 00 00 00 01 00 	[MII]       nop.m 0x0
-    ad36:	e0 90 39 22 20 00 	            dep r14=r50,r14,62,2
-    ad3c:	00 00 04 00       	            nop.i 0x0;;
+    ad30:	0b 70 9c 1c 0e 20 	[MMI]       or r14=r39,r14;;
+    ad36:	00 00 00 02 00 c0 	            nop.m 0x0
+    ad3c:	21 73 44 40       	            dep r14=r50,r14,62,2;;
     ad40:	09 00 38 10 98 11 	[MMI]       st8 [r8]=r14
     ad46:	00 98 41 20 23 00 	            st4 [r16]=r51
     ad4c:	00 00 04 00       	            nop.i 0x0;;


Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]