aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-01-10 14:25:37 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-01-11 10:01:22 -0800
commit7f56a90269b393fcc55ef08e0990fafb7b1c24b4 (patch)
tree65ad4e66129bd79733c39a79f4944598abcdeebc /gcc/expr.cc
parentcd2022f39297198adad0e284f8780cb3d83d0f85 (diff)
downloadgcc-7f56a90269b393fcc55ef08e0990fafb7b1c24b4.zip
gcc-7f56a90269b393fcc55ef08e0990fafb7b1c24b4.tar.gz
gcc-7f56a90269b393fcc55ef08e0990fafb7b1c24b4.tar.bz2
match: Delay folding of 1/x into `(x+1u)<2u?x:0` until late [PR113301]
Since currently ranger does not work with the complexity of COND_EXPR in some cases so delaying the simplification of `1/x` for signed types help code generation. tree-ssa/divide-8.c is a new testcase where this can help. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/113301 gcc/ChangeLog: * match.pd (`1/x`): Delay signed case until late. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/divide-8.c: New test. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions