diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2025-01-28 12:00:06 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2025-01-29 05:34:54 -0800 |
commit | dc6b949c553a3be1ce4d6671fb8a9de213ede114 (patch) | |
tree | a3613b67161030a30a9a6930f978f3778131d4c2 /gcc/expr.cc | |
parent | eafdce175a4e22bebf42e37a94d528eb52f92f16 (diff) | |
download | gcc-dc6b949c553a3be1ce4d6671fb8a9de213ede114.zip gcc-dc6b949c553a3be1ce4d6671fb8a9de213ede114.tar.gz gcc-dc6b949c553a3be1ce4d6671fb8a9de213ede114.tar.bz2 |
split-path: Small fix for poor_ifcvt_pred (tsvc s258) [PR118505]
After r15-3436-gb2b20b277988ab, poor_ifcvt_pred returns false for
the case where the statement could trap but in this case trapping
instructions cannot be made unconditional so it is a poor ifcvt.
This fixes a small preformance regression with TSVC s258 at
`-O3 -ftrapping-math` on aarch64 where ifcvt would not happen
and we would still have a branch.
On a specific aarch64, we go from 0.145s down to 0.118s.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
PR tree-optimization/118505
* gimple-ssa-split-paths.cc (poor_ifcvt_pred): Return
true for trapping statements.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions