diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 17:48:55 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 17:48:55 +0000 |
commit | 13dca219bab028869c2204d1380a3a352b762c4c (patch) | |
tree | fd95fe3d76f2497af928780faa943ea1d879b00e /gcc/sese.c | |
parent | fc830e2d68d27d581f5a1a0b4c4da507254bffe0 (diff) | |
download | gcc-13dca219bab028869c2204d1380a3a352b762c4c.tar.gz |
Fix PR42326: handle default definitions.
2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/42326
* sese.c (name_defined_in_loop_p): Return false for default
definitions.
* gcc.dg/graphite/pr42326.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157280 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sese.c')
-rw-r--r-- | gcc/sese.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/sese.c b/gcc/sese.c index d7a9faa1ad8..545b1c6b5a9 100644 --- a/gcc/sese.c +++ b/gcc/sese.c @@ -1106,9 +1106,8 @@ get_false_edge_from_guard_bb (basic_block bb) static bool name_defined_in_loop_p (tree name, loop_p loop) { - gimple stmt = SSA_NAME_DEF_STMT (name); - - return (gimple_bb (stmt)->loop_father == loop); + return !SSA_NAME_IS_DEFAULT_DEF (name) + && gimple_bb (SSA_NAME_DEF_STMT (name))->loop_father == loop; } /* Returns true when EXPR contains SSA_NAMEs defined in LOOP. */ |