Use functions for the CROSSING_JUMP_P flag
Replaces a macro with a function for managing the CROSSING_JUMP_P flag on instructions.
This commit refactors the handling of the CROSSING_JUMP_P flag by replacing the macro with a dedicated function. This change improves type safety and code clarity by ensuring the flag is manipulated through a consistent interface that operates on rtx_insn*. It impacts various scheduling and control flow analysis passes within GCC.
In Details
This commit converts the CROSSING_JUMP_P macro and its setter set_crossing_jump into inline functions that operate on an rtx_insn*. This is part of a larger effort to move away from raw macro-based access to RTX flags towards a more type-safe, function-based API. The CROSSING_JUMP_P flag is used in basic block reordering and instruction scheduling to identify jumps that cross basic block boundaries, which can have implications for optimization.
- RTX
- Representation of intermediate values in GCC. It's a tree-like data structure used to represent expressions, instructions, and other program elements during compilation.
- rtx_insn*
- A pointer to an RTX specifically representing a machine instruction.
- basic block
- A contiguous sequence of code within a function that has one entry point and one exit point. Control flow can only enter at the beginning and exit at the end.