diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-02-04 12:03:49 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2022-02-04 12:10:05 +0100 |
commit | bd14cdceb9c6f4800e25a9fbca635a1d4c06fd32 (patch) | |
tree | f095dd4c180fc306e7fba96b4025132bd4d12adf /gcc/fold-const.h | |
parent | 876e70d4681332a600492173af0c7259e5a438c6 (diff) | |
download | gcc-bd14cdceb9c6f4800e25a9fbca635a1d4c06fd32.zip gcc-bd14cdceb9c6f4800e25a9fbca635a1d4c06fd32.tar.gz gcc-bd14cdceb9c6f4800e25a9fbca635a1d4c06fd32.tar.bz2 |
Disable new 1/X optimization with -fnon-call-exceptions
The trapping behavior of the operation needs to be preserved when the
-fnon-call-exceptions switch is in effect. This also adds the same
guards to similar optimizations.
gcc/
PR tree-optimization/104356
* match.pd (X / bool_range_Y is X): Add guard.
(X / X is one): Likewise.
(X / abs (X) is X < 0 ? -1 : 1): Likewise.
(X / -X is -1): Likewise.
(1 / X -> X == 1): Likewise.
Diffstat (limited to 'gcc/fold-const.h')
0 files changed, 0 insertions, 0 deletions