aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-04 14:12:10 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-04-04 14:12:10 +0000
commitc6803d43effa943273a5c6db91a4ec1d39076932 (patch)
treeda20e1e0ccab946bb68ad3a0361c6996f7503b9a /gcc/tree-ssa-operands.c
parent54f5943cdbf9c86991e68830a11ccda49850d6dc (diff)
downloadgcc-c6803d43effa943273a5c6db91a4ec1d39076932.zip
gcc-c6803d43effa943273a5c6db91a4ec1d39076932.tar.gz
gcc-c6803d43effa943273a5c6db91a4ec1d39076932.tar.bz2
tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
2009-04-04 Richard Guenther <rguenther@suse.de> * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs. * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0. (append_vuse): Likewise. From-SVN: r145539
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 56d8e84..f4df750 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -608,6 +608,9 @@ append_use (tree *use_p)
static inline void
append_vdef (tree var)
{
+ if (!optimize)
+ return;
+
gcc_assert ((build_vdef == NULL_TREE
|| build_vdef == var)
&& (build_vuse == NULL_TREE
@@ -623,6 +626,9 @@ append_vdef (tree var)
static inline void
append_vuse (tree var)
{
+ if (!optimize)
+ return;
+
gcc_assert (build_vuse == NULL_TREE
|| build_vuse == var);