1 /* Avoid store forwarding optimization pass.
2 Copyright (C) 2024-2025 Free Software Foundation, Inc.
3 Contributed by VRULL GmbH.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 GCC is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef GCC_AVOID_STORE_FORWARDING_H
22 #define GCC_AVOID_STORE_FORWARDING_H
26 #include "coretypes.h"
32 /* The store instruction that is a store forwarding candidate. */
34 /* SET_DEST (single_set (store_insn)). */
36 /* The temporary that will hold the stored value at the original store
39 /* The instruction sequence that inserts the stored value's bits at the
40 appropriate position in the loaded value. */
41 rtx_insn
*bits_insert_insns
;
42 /* An instruction that saves the store's value in a register temporarily,
43 (set (reg X) (SET_SRC (store_insn))). */
44 rtx_insn
*save_store_value_insn
;
45 /* An instruction that stores the saved value back to memory,
46 (set (SET_DEST (store_insn)) (reg X)). */
47 rtx_insn
*store_saved_value_insn
;
48 /* The byte offset for the store's position within the load. */
51 unsigned int insn_cnt
;
56 #endif /* GCC_AVOID_STORE_FORWARDING_H */