aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-06-22 10:00:12 -0400
committerAndrew MacLeod <amacleod@redhat.com>2023-06-26 09:26:39 -0400
commit4dfeb1cd8dfca234186216d891ec8f46235c3a14 (patch)
tree48dc950a1249d0deac49a0e7cf1eb862ce651abb /libjava/java
parent9302b0743b366037379af0568534c23ab597b4d4 (diff)
downloadgcc-4dfeb1cd8dfca234186216d891ec8f46235c3a14.zip
gcc-4dfeb1cd8dfca234186216d891ec8f46235c3a14.tar.gz
gcc-4dfeb1cd8dfca234186216d891ec8f46235c3a14.tar.bz2
Avoid redundant GORI calcuations.
When GORI evaluates a statement, if operand 1 and 2 are both in the dependency chain, GORI evaluates the name through both operands sequentially and combines the results. If either operand is in the dependency chain of the other, this evaluation will do the same work twice, for questionable gain. Instead, simple evaluate only the operand which depends on the other and keep the evaluation linear in time. * gimple-range-gori.cc (compute_operand1_and_operand2_range): Check for interdependence between operands 1 and 2.
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions