diff options
author | Richard Biener <rguenther@suse.de> | 2022-04-06 11:43:01 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-04-06 13:15:35 +0200 |
commit | e1a5e7562d53a8d2256f754714b06595bea72196 (patch) | |
tree | 885d2af63d488361b01ba5ca6d73b9df57257b8e /gcc/combine.cc | |
parent | 4be08315124281f4e9359bc7e5279a99bdbdd053 (diff) | |
download | gcc-e1a5e7562d53a8d2256f754714b06595bea72196.zip gcc-e1a5e7562d53a8d2256f754714b06595bea72196.tar.gz gcc-e1a5e7562d53a8d2256f754714b06595bea72196.tar.bz2 |
tree-optimization/105173 - fix insertion logic in reassoc
The find_insert_point logic around deciding whether to insert
before or after the found insertion point does not handle
the case of _12 = ..;, _12, 1.0 well. The following puts the
logic into find_insert_point itself instead.
2022-04-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/105173
* tree-ssa-reassoc.cc (find_insert_point): Get extra
insert_before output argument and compute it.
(insert_stmt_before_use): Adjust.
(rewrite_expr_tree): Likewise.
* gcc.dg/pr105173.c: New testcase.
Diffstat (limited to 'gcc/combine.cc')
0 files changed, 0 insertions, 0 deletions