diff options
author | Qing Zhao <qing.zhao@oracle.com> | 2023-09-15 13:46:52 +0000 |
---|---|---|
committer | Qing Zhao <qing.zhao@oracle.com> | 2023-09-15 13:46:52 +0000 |
commit | 4aca1cfd6235090e48a53dab734437740671bbf3 (patch) | |
tree | efc6d37f24204542787151814f7b4595af9abbda /gcc/analyzer/infinite-recursion.cc | |
parent | 540a1d936d8f73f5e2efdefafd8342ec27773ae8 (diff) | |
download | gcc-4aca1cfd6235090e48a53dab734437740671bbf3.zip gcc-4aca1cfd6235090e48a53dab734437740671bbf3.tar.gz gcc-4aca1cfd6235090e48a53dab734437740671bbf3.tar.bz2 |
Fix PR111407--SSA corruption due to widening_mul opt on conflict across an abnormal edge
This is a bug in tree-ssa-math-opts.cc, when applying the widening mul
optimization, the compiler needs to check whether the operand is in a
ABNORMAL PHI, if YES, we should avoid the transformation.
PR tree-optimization/111407
gcc/ChangeLog:
* tree-ssa-math-opts.cc (convert_mult_to_widen): Avoid the transform
when one of the operands is subject to abnormal coalescing.
gcc/testsuite/ChangeLog:
* gcc.dg/pr111407.c: New test.
Diffstat (limited to 'gcc/analyzer/infinite-recursion.cc')
0 files changed, 0 insertions, 0 deletions