diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-06-22 10:00:12 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-06-26 09:26:39 -0400 |
commit | 4dfeb1cd8dfca234186216d891ec8f46235c3a14 (patch) | |
tree | 48dc950a1249d0deac49a0e7cf1eb862ce651abb /libjava/java | |
parent | 9302b0743b366037379af0568534c23ab597b4d4 (diff) | |
download | gcc-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