@@ -2954,7 +2954,6 @@ extern void set_insn_deleted (rtx);
/* Functions in rtlanal.c */
-extern rtx_code load_extend_op (machine_mode);
extern rtx single_set_2 (const rtx_insn *, const_rtx);
extern bool contains_symbol_ref_p (const_rtx);
extern bool contains_symbolic_reference_p (const_rtx);
@@ -3771,5 +3770,17 @@ struct GTY(()) cgraph_rtl_info {
unsigned function_used_regs_valid: 1;
};
+/* If loads from memories of mode MODE always sign or zero extend,
+ return SIGN_EXTEND or ZERO_EXTEND as appropriate. Return UNKNOWN
+ otherwise. */
+
+inline rtx_code
+load_extend_op (machine_mode mode)
+{
+ if (SCALAR_INT_MODE_P (mode)
+ && GET_MODE_PRECISION (mode) < BITS_PER_WORD)
+ return LOAD_EXTEND_OP (mode);
+ return UNKNOWN;
+}
#endif /* ! GCC_RTL_H */
@@ -3863,19 +3863,6 @@ subreg_nregs_with_regno (unsigned int regno, const_rtx x)
return info.nregs;
}
-/* If loads from memories of mode MODE always sign or zero extend,
- return SIGN_EXTEND or ZERO_EXTEND as appropriate. Return UNKNOWN
- otherwise. */
-
-rtx_code
-load_extend_op (machine_mode mode)
-{
- if (SCALAR_INT_MODE_P (mode)
- && GET_MODE_PRECISION (mode) < BITS_PER_WORD)
- return LOAD_EXTEND_OP (mode);
- return UNKNOWN;
-}
-
struct parms_set_data
{
int nregs;