This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33761] non-optimal inlining heuristics pessimizes gzip SPEC score at -O3
- From: "hubicka at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2008 12:02:54 -0000
- Subject: [Bug tree-optimization/33761] non-optimal inlining heuristics pessimizes gzip SPEC score at -O3
- References: <bug-33761-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #27 from hubicka at gcc dot gnu dot org 2008-09-06 12:02 -------
Also just noticed that offline copy of longest-match get extra move:
.L15:
movzbl 2(%eax), %edi #, tmp87
leal 2(%eax), %ecx #, scan.158
movl %edi, %edx # tmp87,
cmpb 2(%ebx), %dl #,
jne .L6 #,
movzbl 3(%eax), %edi #, tmp88
leal 3(%eax), %ecx #, scan.158
movl %edi, %edx # tmp88,
cmpb 3(%ebx), %dl #,
jne .L6 #,
movzbl 4(%eax), %edi #, tmp89
leal 4(%eax), %ecx #, scan.158
movl %edi, %edx # tmp89,
cmpb 4(%ebx), %dl #,
jne .L6 #,
movzbl 5(%eax), %edi #, tmp90
leal 5(%eax), %ecx #, scan.158
movl %edi, %edx # tmp90,
cmpb 5(%ebx), %dl #,
jne .L6 #,
while inlined copy is fine:
.L98:
movzbl 1(%eax), %edx #,
leal 1(%eax), %edi #, scan
cmpb 1(%ecx), %dl #,
jne .L161 #,
movzbl 2(%eax), %edx #,
leal 2(%eax), %edi #, scan
cmpb 2(%ecx), %dl #,
jne .L161 #,
movzbl 3(%eax), %edx #,
leal 3(%eax), %edi #, scan
cmpb 3(%ecx), %dl #,
jne .L161 #,
movzbl 4(%eax), %edx #,
leal 4(%eax), %edi #, scan
cmpb 4(%ecx), %dl #,
jne .L161 #,
interesting :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33761