diff options
author | Richard Biener <rguenther@suse.de> | 2022-04-04 11:29:14 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-05-05 10:46:02 +0200 |
commit | c2a0d2e6f636c6ad7da44256b6bea7470d895100 (patch) | |
tree | 332644fbf86b4fa915ccfac745c8703c0961b1f6 /gcc/tree.h | |
parent | 000f4480005035d0811e009a7cb25b42721f0a6e (diff) | |
download | gcc-c2a0d2e6f636c6ad7da44256b6bea7470d895100.zip gcc-c2a0d2e6f636c6ad7da44256b6bea7470d895100.tar.gz gcc-c2a0d2e6f636c6ad7da44256b6bea7470d895100.tar.bz2 |
rewrite undefined overflow to defined in ifcombine
When we make stmts to execute unconditionally in ifcombine we have
to make sure to rewrite stmts that can invoke undefined behavior
on overflow into a form with defined overflow. That's possible
for all but signed division for which we have to avoid the transform.
2022-04-04 Richard Biener <rguenther@suse.de>
* tree-ssa-ifcombine.cc (bb_no_side_effects_p): Avoid executing
divisions with undefined overflow unconditionally.
(pass_tree_ifcombine::execute): Rewrite stmts with undefined
overflow to defined.
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions