]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/113796 - if-conversion and ranges
authorRichard Biener <rguenther@suse.de>
Wed, 7 Feb 2024 12:08:43 +0000 (13:08 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 7 Feb 2024 14:49:51 +0000 (15:49 +0100)
commit8636c538b68068cd2a4115fece531dc3e3e3a84a
tree69093ae104c97e68786caf29371c01e5003a6366
parent99200573096c03120c8d4514383951acecdd5ab1
tree-optimization/113796 - if-conversion and ranges

The following makes sure to wipe range info before folding the
COND_EXPRs we insert as part of replacing PHI nodes when combining
blocks in the if-conversion pass.

PR tree-optimization/113796
* tree-if-conv.cc (combine_blocks): Wipe range-info before
replacing PHIs and inserting predicates.

* gcc.dg/torture/pr113796.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr113796.c [new file with mode: 0644]
gcc/tree-if-conv.cc