diff options
author | Richard Biener <rguenther@suse.de> | 2024-02-20 11:47:03 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-07 14:19:35 +0200 |
commit | bed6ec161be8c5ca2f24195900ce3c9b81c3e141 (patch) | |
tree | 7dd43e3a58257f3146d570a8b226fa6b4625eb06 /gcc/gimple-range-path.cc | |
parent | cc2f3e408ee095653e6658b3126efce717a5586e (diff) | |
download | gcc-bed6ec161be8c5ca2f24195900ce3c9b81c3e141.zip gcc-bed6ec161be8c5ca2f24195900ce3c9b81c3e141.tar.gz gcc-bed6ec161be8c5ca2f24195900ce3c9b81c3e141.tar.bz2 |
middle-end/27800 - avoid unnecessary temporary during gimplification
This avoids a tempoary when gimplifying reg = a ? b : c, re-using
the LHS of an assignment if that's a register.
PR middle-end/27800
* gimplify.cc (gimplify_modify_expr_rhs): For a COND_EXPR
avoid a temporary from gimplify_cond_expr when the LHS is
a register by pushing the assignment into the COND_EXPR arms.
* gcc.dg/pr27800.c: New testcase.
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions