diff options
author | Yang Yang <yangyang305@huawei.com> | 2020-06-30 18:04:31 +0800 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-06-30 15:54:07 +0200 |
commit | 33d114f570b4a3583421c700396fd5945acebc28 (patch) | |
tree | 807e0639ce6bd1f283439840d4778dac0d4c5e77 /gcc/cp/method.c | |
parent | 7d503e329911a9c7f6d4db3170f6ed6f5a0424ba (diff) | |
download | gcc-33d114f570b4a3583421c700396fd5945acebc28.zip gcc-33d114f570b4a3583421c700396fd5945acebc28.tar.gz gcc-33d114f570b4a3583421c700396fd5945acebc28.tar.bz2 |
tree-optimization/95855 - Add checks to avoid spoiling if-conversion if
Add some checks in pass_splits_paths, so that pass_split_paths can
recognize the missed if-conversion opportunity and do not duplicate the
corresponding block.
2020-06-30 Yang Yang <yangyang305@huawei.com>
gcc/ChangeLog:
PR tree-optimization/95855
* gimple-ssa-split-paths.c (is_feasible_trace): Add extra
checks to recognize a missed if-conversion opportunity when
judging whether to duplicate a block.
gcc/testsuite/ChangeLog
PR tree-optimization/95855
* gcc.dg/tree-ssa/split-path-12.c: New testcase.
Diffstat (limited to 'gcc/cp/method.c')
0 files changed, 0 insertions, 0 deletions