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-2025 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
24#include "config.h"
25#include "system.h"
26#include "coretypes.h"
27#include "backend.h"
28#include "rtl.h"
29
31{
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
37 position. */
39 /* The instruction sequence that inserts the stored value's bits at the
40 appropriate position in the loaded value. */
42 /* An instruction that saves the store's value in a register temporarily,
43 (set (reg X) (SET_SRC (store_insn))). */
45 /* An instruction that stores the saved value back to memory,
46 (set (SET_DEST (store_insn)) (reg X)). */
48 /* The byte offset for the store's position within the load. */
49 HOST_WIDE_INT offset;
50
51 unsigned int insn_cnt;
52 bool remove;
54};
55
56#endif /* GCC_AVOID_STORE_FORWARDING_H */
Definition rtl.h:312
Definition rtl.h:546
Definition avoid-store-forwarding.h:31
rtx store_mem
Definition avoid-store-forwarding.h:35
rtx_insn * store_saved_value_insn
Definition avoid-store-forwarding.h:47
bool remove
Definition avoid-store-forwarding.h:52
unsigned int insn_cnt
Definition avoid-store-forwarding.h:51
rtx mov_reg
Definition avoid-store-forwarding.h:38
rtx_insn * bits_insert_insns
Definition avoid-store-forwarding.h:41
HOST_WIDE_INT offset
Definition avoid-store-forwarding.h:49
bool forwarded
Definition avoid-store-forwarding.h:53
rtx_insn * store_insn
Definition avoid-store-forwarding.h:33
rtx_insn * save_store_value_insn
Definition avoid-store-forwarding.h:44