diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-03 11:56:05 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-03 11:56:05 +0000 |
commit | 4ecddf77a78315d1b593805cfbbfd72a9e3f3600 (patch) | |
tree | 0742db283bbfcef77a7275dca113b22c33b05371 /gcc/ipa-prop.c | |
parent | 222d55adc70a6634c7acd053aeba5018a690f092 (diff) | |
download | gcc-4ecddf77a78315d1b593805cfbbfd72a9e3f3600.tar.gz |
2009-06-03 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/40323
* ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
assignment.
* testsuite/g++.dg/torture/pr40323.C: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 6f5e26b2042..a376f45c7b3 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -440,6 +440,8 @@ get_ssa_def_if_simple_copy (tree rhs) if (gimple_assign_single_p (def_stmt)) rhs = gimple_assign_rhs1 (def_stmt); + else + break; } return rhs; } |