public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38446]  New: [graphite] The def for a var exists inside one of the scops bb's but an appropriate phi is not created to allow the phi to reach the use of that def ouside the scop.
@ 2008-12-08 17:26 hjagasia at gcc dot gnu dot org
  2008-12-08 17:27 ` [Bug c/38446] " hjagasia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: hjagasia at gcc dot gnu dot org @ 2008-12-08 17:26 UTC (permalink / raw)
  To: gcc-bugs

gloog calls rewrite_into_sese_closed_ssa, which in turn calls
sese_find_uses_to_rename_bb. sese_find_uses_to_rename_bb looks at every phi in
every basic block. For each incoming edge into that basic block which is
associated with the corresponding use argument of the phi, graphite then calls
sese_find_uses_to_rename_bb. Now for the use found, the def_bb is looked up. If
the def_bb exists and def_bb belongs to the scop and use_bb does not belong to
scope, then a phi is created that can reach the use_bb because def_bb does not
reach use_bb.

Right now the check which determines if def_bb belongs to the scop and use_bb
does not belong to scop is broken since it looks at dominators and post
dominators instead of travesing or looking up the bb's in scop which match with
a given bb.


-- 
           Summary: [graphite] The def for a var exists inside one of the
                    scops bb's but an appropriate phi is not created to
                    allow the phi to reach the use of that def ouside the
                    scop.
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: hjagasia at gcc dot gnu dot org
        ReportedBy: hjagasia at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38446


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-12-11 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-08 17:26 [Bug c/38446] New: [graphite] The def for a var exists inside one of the scops bb's but an appropriate phi is not created to allow the phi to reach the use of that def ouside the scop hjagasia at gcc dot gnu dot org
2008-12-08 17:27 ` [Bug c/38446] " hjagasia at gcc dot gnu dot org
2008-12-10 21:10 ` [Bug middle-end/38446] " hjagasia at gcc dot gnu dot org
2008-12-10 22:35 ` hjagasia at gcc dot gnu dot org
2008-12-10 22:37   ` Sebastian Pop
2008-12-10 22:39 ` sebpop at gmail dot com
2008-12-11 17:29 ` hjagasia at gcc dot gnu dot org
2008-12-11 19:38 ` spop at gcc dot gnu dot org
2008-12-11 19:42 ` 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).