diff options
author | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-05-23 22:10:01 +0100 |
---|---|---|
committer | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-05-23 22:10:01 +0100 |
commit | f17a10fdcf2dfb35a106dbd1e6732d1f8adcb7fe (patch) | |
tree | 53e66fcabf4701f4138254eb8c6f6e2965b283cc /gcc/gimple-loop-interchange.cc | |
parent | 9f1a305893cf32a6907e1fed8d9dd5bd4652e767 (diff) | |
parent | 58c9c7407a1a992ac253826790cd2b8920e3fe8f (diff) | |
download | gcc-f17a10fdcf2dfb35a106dbd1e6732d1f8adcb7fe.zip gcc-f17a10fdcf2dfb35a106dbd1e6732d1f8adcb7fe.tar.gz gcc-f17a10fdcf2dfb35a106dbd1e6732d1f8adcb7fe.tar.bz2 |
Merge branch 'master' into devel/modula-2.
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
-rw-r--r-- | gcc/gimple-loop-interchange.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gimple-loop-interchange.cc b/gcc/gimple-loop-interchange.cc index 53adc02..d5d690b 100644 --- a/gcc/gimple-loop-interchange.cc +++ b/gcc/gimple-loop-interchange.cc @@ -897,7 +897,9 @@ loop_cand::undo_simple_reduction (reduction_p re, bitmap dce_seeds) /* Init new_var to MEM_REF or CONST depending on if it is the first iteration. */ induction_p iv = m_inductions[0]; - cond = fold_build2 (NE_EXPR, boolean_type_node, iv->var, iv->init_val); + cond = make_ssa_name (boolean_type_node); + stmt = gimple_build_assign (cond, NE_EXPR, iv->var, iv->init_val); + gimple_seq_add_stmt_without_update (&stmts, stmt); new_var = copy_ssa_name (re->var); stmt = gimple_build_assign (new_var, COND_EXPR, cond, tmp, re->init); gimple_seq_add_stmt_without_update (&stmts, stmt); |