aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java
diff options
context:
space:
mode:
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>2026-01-25 22:23:51 -0800
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>2026-01-26 11:10:57 -0800
commitd1b30abe52228923ba389173c02c0186d25be1ab (patch)
tree488f5d163ffa7f706c6fb828f097aa95800cd4f6 /libjava/gnu/java
parent3ec1d59c1705a21398076893d19e25ac18ff24a5 (diff)
downloadgcc-d1b30abe52228923ba389173c02c0186d25be1ab.zip
gcc-d1b30abe52228923ba389173c02c0186d25be1ab.tar.gz
gcc-d1b30abe52228923ba389173c02c0186d25be1ab.tar.bz2
slsr: Use the correct type to try to convert to for inserting on edge case [PR123820]
I had noticed there was code that will convert the stride to the correct type What I didn't realize was the type which it was trying to use was stride_type but for this case it should have been using the type of the lhs. This fixes that oversight. Note for pointers we still want to use stride_type like what is done right above. I don't have a testcase that does not use LTO though. I didn't figure out why this testcase needed LTO though. Bootstrapped and tested on x86_64-linux-gnu. PR tree-optimization/123820 gcc/ChangeLog: * gimple-ssa-strength-reduction.cc (create_add_on_incoming_edge): Use the correct type for the stride (lhs if non-pointer). gcc/testsuite/ChangeLog: * g++.dg/torture/pr123820-1.C: New test. Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libjava/gnu/java')
0 files changed, 0 insertions, 0 deletions