public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/42130] New: [graphite-branch] dealII fails
@ 2009-11-21 8:47 grosser at gcc dot gnu dot org
2009-11-21 8:50 ` [Bug middle-end/42130] " grosser at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-21 8:47 UTC (permalink / raw)
To: gcc-bugs
Compilation with only graphite-identity fails:
"-O3 -fno-loop-interchange -fno-loop-block -fno-loop-strip-mine"
------------------------------------------------------------------------------
Running 447.dealII train base amd64-m64-gcc43-nn default
/home/grosser/spec/bin/specinvoke -d
/home/grosser/spec/benchspec/CPU2006/447.dealII/run/run_base_train_amd64-m64-gcc43-nn.0007
-e speccmds.err -o speccmds.stdout -f speccmds.cmd -C
447.dealII: copy 0 non-zero return code (exit code=0, signal=11)
------------------------------------------------------------------------------
without graphite identity it works:
-O3 -fno-graphite-identity -fno-loop-interchange -fno-loop-block
-fno-loop-strip-mine -fno-graphite
--
Summary: [graphite-branch] dealII fails
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: grosser at gcc dot gnu dot org
ReportedBy: grosser at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
@ 2009-11-21 8:50 ` grosser at gcc dot gnu dot org
2009-11-22 18:06 ` grosser at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-21 8:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from grosser at gcc dot gnu dot org 2009-11-21 08:50 -------
Created an attachment (id=19071)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19071&action=view)
Small C++ testcase showing the same behavior
-O2 -fno-tree-ch are required options
Fails on execution
Submitted by: Alexander Monakov
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
2009-11-21 8:50 ` [Bug middle-end/42130] " grosser at gcc dot gnu dot org
@ 2009-11-22 18:06 ` grosser at gcc dot gnu dot org
2009-11-23 13:02 ` grosser at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-22 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from grosser at gcc dot gnu dot org 2009-11-22 18:06 -------
Created an attachment (id=19086)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19086&action=view)
First try - Needs cleanup
I got a patch that fixes both the small C++ testcase and the dealII. It needs
just some cleanup, a nice description and all this stuff.
The problem was that we check the loop conditions only after the loop body, so
loops with zero iterations are executed once. And this is one time too much.
I will do the cleanup and committing of this patch next week
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
2009-11-21 8:50 ` [Bug middle-end/42130] " grosser at gcc dot gnu dot org
2009-11-22 18:06 ` grosser at gcc dot gnu dot org
@ 2009-11-23 13:02 ` grosser at gcc dot gnu dot org
2009-11-25 11:48 ` amonakov at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-23 13:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from grosser at gcc dot gnu dot org 2009-11-23 13:02 -------
Subject: Bug 42130
Author: grosser
Date: Mon Nov 23 13:02:08 2009
New Revision: 154440
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154440
Log:
Protect loops that might be executed zero times.
2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
PR middle-end/42130
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
translate_clast_for_loop): New.
(translate_clast_for): Add a condition around the loop, to do not
execute loops with zero iterations.
* testsuite/g++.dg/graphite/pr42130.C: New.
* testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.
Added:
branches/graphite/gcc/testsuite/g++.dg/graphite/pr42130.C
Modified:
branches/graphite/gcc/ChangeLog.graphite
branches/graphite/gcc/graphite-clast-to-gimple.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr35356-2.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-11-23 13:02 ` grosser at gcc dot gnu dot org
@ 2009-11-25 11:48 ` amonakov at gcc dot gnu dot org
2009-11-30 16:59 ` spop at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: amonakov at gcc dot gnu dot org @ 2009-11-25 11:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from amonakov at gcc dot gnu dot org 2009-11-25 11:48 -------
Tobias,
Please fix the testcase before committing to trunk, like this ('return 0' is
needed to ensure the test does not fail when compiled correctly; 'noclone' to
ensure that foo is not specialized for n=0):
/* { dg-options "-O2 -fno-tree-ch" } */
#include <vector>
using std::vector;
vector<unsigned> & __attribute__((noinline,noclone)) foo(unsigned n)
{
vector<unsigned> *vv = new vector<unsigned>(n, 0u);
return *vv;
}
int main()
{
foo(0);
return 0;
}
(In reply to comment #3)
--
amonakov at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-11-25 11:48 ` amonakov at gcc dot gnu dot org
@ 2009-11-30 16:59 ` spop at gcc dot gnu dot org
2009-11-30 22:08 ` grosser at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-11-30 16:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from spop at gcc dot gnu dot org 2009-11-30 16:59 -------
Fixed.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-11-30 16:59 ` spop at gcc dot gnu dot org
@ 2009-11-30 22:08 ` grosser at gcc dot gnu dot org
2009-12-15 8:21 ` spop at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-30 22:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from grosser at gcc dot gnu dot org 2009-11-30 22:08 -------
Subject: Bug 42130
Author: grosser
Date: Mon Nov 30 22:07:59 2009
New Revision: 154849
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154849
Log:
Protect loops that might be executed zero times.
2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
PR middle-end/42130
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
translate_clast_for_loop): New.
(translate_clast_for): Add a condition around the loop, to do not
execute loops with zero iterations.
* testsuite/g++.dg/graphite/pr42130.C: New.
* testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.
Added:
trunk/gcc/testsuite/g++.dg/graphite/pr42130.C
Modified:
trunk/gcc/ChangeLog.graphite
trunk/gcc/graphite-clast-to-gimple.c
trunk/gcc/testsuite/gcc.dg/graphite/pr35356-2.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-11-30 22:08 ` grosser at gcc dot gnu dot org
@ 2009-12-15 8:21 ` spop at gcc dot gnu dot org
2009-12-15 8:27 ` spop at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-12-15 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from spop at gcc dot gnu dot org 2009-12-15 08:21 -------
I will add -fgraphite-identity to the testcase as otherwise we're not going to
test graphite on trunk...
diff --git a/gcc/testsuite/g++.dg/graphite/pr42130.C
b/gcc/testsuite/g++.dg/graphite/pr42130.C
index ca00227..5652139 100644
--- a/gcc/testsuite/g++.dg/graphite/pr42130.C
+++ b/gcc/testsuite/g++.dg/graphite/pr42130.C
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fno-tree-ch" } */
+/* { dg-options "-O2 -fgraphite-identity -fno-tree-ch" } */
#include <vector>
using std::vector;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-12-15 8:21 ` spop at gcc dot gnu dot org
@ 2009-12-15 8:27 ` spop at gcc dot gnu dot org
2009-12-23 17:37 ` spop at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-12-15 8:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from spop at gcc dot gnu dot org 2009-12-15 08:27 -------
Also, I don't know why the test fails at runtime like this:
FAIL: g++.dg/graphite/pr42130.C execution test
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-12-15 8:27 ` spop at gcc dot gnu dot org
@ 2009-12-23 17:37 ` spop at gcc dot gnu dot org
2010-01-13 6:33 ` spop at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-12-23 17:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from spop at gcc dot gnu dot org 2009-12-23 17:37 -------
The testcase still fails with -fgraphite-identity.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-12-23 17:37 ` spop at gcc dot gnu dot org
@ 2010-01-13 6:33 ` spop at gcc dot gnu dot org
2010-03-08 17:55 ` spop at gcc dot gnu dot org
2010-03-25 15:16 ` spop at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-01-13 6:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from spop at gcc dot gnu dot org 2010-01-13 06:33 -------
This seems to still be wrong code, so P1.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (9 preceding siblings ...)
2010-01-13 6:33 ` spop at gcc dot gnu dot org
@ 2010-03-08 17:55 ` spop at gcc dot gnu dot org
2010-03-25 15:16 ` spop at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-03-08 17:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from spop at gcc dot gnu dot org 2010-03-08 17:54 -------
Fixed by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157287
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/42130] [graphite-branch] dealII fails
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
` (10 preceding siblings ...)
2010-03-08 17:55 ` spop at gcc dot gnu dot org
@ 2010-03-25 15:16 ` spop at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-03-25 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from spop at gcc dot gnu dot org 2010-03-25 15:15 -------
The patch for the fix is:
http://gcc.gnu.org/viewcvs?view=revision&revision=157286
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-03-25 15:16 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-21 8:47 [Bug middle-end/42130] New: [graphite-branch] dealII fails grosser at gcc dot gnu dot org
2009-11-21 8:50 ` [Bug middle-end/42130] " grosser at gcc dot gnu dot org
2009-11-22 18:06 ` grosser at gcc dot gnu dot org
2009-11-23 13:02 ` grosser at gcc dot gnu dot org
2009-11-25 11:48 ` amonakov at gcc dot gnu dot org
2009-11-30 16:59 ` spop at gcc dot gnu dot org
2009-11-30 22:08 ` grosser at gcc dot gnu dot org
2009-12-15 8:21 ` spop at gcc dot gnu dot org
2009-12-15 8:27 ` spop at gcc dot gnu dot org
2009-12-23 17:37 ` spop at gcc dot gnu dot org
2010-01-13 6:33 ` spop at gcc dot gnu dot org
2010-03-08 17:55 ` spop at gcc dot gnu dot org
2010-03-25 15:16 ` spop at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).