GCC Middle and Back End API Reference
avoid-store-forwarding.h
Go to the documentation of this file.
1/* Avoid store forwarding optimization pass.
2 Copyright (C) 2024-2026 Free Software Foundation, Inc.
3 Contributed by VRULL GmbH.
4
5 This file is part of GCC.
6
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)
10 any later version.
11
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.
16
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/>. */
20
21#ifndef GCC_AVOID_STORE_FORWARDING_H
22#define GCC_AVOID_STORE_FORWARDING_H
23
25{
26 /* The store instruction that is a store forwarding candidate. */
28 /* SET_DEST (single_set (store_insn)). */
30 /* The temporary that will hold the stored value at the original store
31 position. */
33 /* The instruction sequence that inserts the stored value's bits at the
34 appropriate position in the loaded value. */
36 /* An instruction that saves the store's value in a register temporarily,
37 (set (reg X) (SET_SRC (store_insn))). */
39 /* An instruction that stores the saved value back to memory,
40 (set (SET_DEST (store_insn)) (reg X)). */
42 /* The byte offset for the store's position within the load. */
43 HOST_WIDE_INT offset;
44
45 unsigned int insn_cnt;
46 bool remove;
48};
49
50#endif /* GCC_AVOID_STORE_FORWARDING_H */
struct rtx_def * rtx
Definition coretypes.h:57
Definition rtl.h:546
Definition avoid-store-forwarding.h:25
rtx store_mem
Definition avoid-store-forwarding.h:29
rtx_insn * store_saved_value_insn
Definition avoid-store-forwarding.h:41
bool remove
Definition avoid-store-forwarding.h:46
unsigned int insn_cnt
Definition avoid-store-forwarding.h:45
rtx mov_reg
Definition avoid-store-forwarding.h:32
rtx_insn * bits_insert_insns
Definition avoid-store-forwarding.h:35
HOST_WIDE_INT offset
Definition avoid-store-forwarding.h:43
bool forwarded
Definition avoid-store-forwarding.h:47
rtx_insn * store_insn
Definition avoid-store-forwarding.h:27
rtx_insn * save_store_value_insn
Definition avoid-store-forwarding.h:38