diff options
| author | Victor Do Nascimento <vicdon01@ip-10-248-139-187.eu-west-1.compute.internal> | 2025-11-13 13:54:05 +0000 |
|---|---|---|
| committer | Victor Do Nascimento <victor.donascimento@arm.com> | 2025-11-17 10:44:53 +0000 |
| commit | cd1a0a437de220d0bced2856ee394478279ac51f (patch) | |
| tree | 1cf4c05b225f463d1a7532c4d2aa101440315955 /libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java | |
| parent | f573c774f1505f61086724d14f2e7679d317d234 (diff) | |
cfgloop: Modify loop_exits_{to,from}_bb_p return type to edge
Given that when finding whether the predicate in question is satisfied
or not we already do the heavy-lifting of identifying the specific
edge that matches the particular criterion, it is wasteful to throw
the edge information away, only to potentially have to recalculate it
when true is returned.
Rather, given the ability of treating a valid pointer as true and,
conversely, the NULL pointer as false, we can return the edge for
should we wish to use it, while keeping the function's existing calls
in the code as is.
gcc/ChangeLog:
* cfgloop.cc (loop_exits_to_bb_p): Change return type.
(loop_exits_from_bb_p): Likewise.
* cfgloop.h: (loop_exits_to_bb_p): Likewise.
(loop_exits_from_bb_p): Likewise.
Diffstat (limited to 'libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java')
0 files changed, 0 insertions, 0 deletions
