Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: gcc/gcc/config/i386/i386.c

Issue 2866019: [gcc] Kill NACL_LEA_MATCH_ADDRESS_OPERAND and insn_is_nacl_lea. (Closed) Base URL: ssh://git@chromiumos-git/nacl-toolchain.git
Patch Set: prepare to commit Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « gcc/gcc/caller-save.c ('k') | gcc/gcc/config/i386/i386-protos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/config/i386/i386.c
diff --git a/gcc/gcc/config/i386/i386.c b/gcc/gcc/config/i386/i386.c
index 1d91ca04b0dae06740554f72266bd8a8e2d34baf..d72ba3391d506f2028e938c6d0959569e55226bd 100644
--- a/gcc/gcc/config/i386/i386.c
+++ b/gcc/gcc/config/i386/i386.c
@@ -8960,7 +8960,6 @@ ix86_lea_decompose_address (rtx addr, struct ix86_address *out)
return retval;
}
-int NACL_LEA_MATCH_ADDRESS_OPERAND = 0;
int
lea_match_address_operand (rtx op, enum machine_mode mode)
{
@@ -8980,51 +8979,6 @@ lea_match_address_operand (rtx op, enum machine_mode mode)
#endif
}
-/* Check if instruction is a LEA instruction.
-
- We should prevent invocation of get_attr_type(insn) for some insns. Examples
- are: USE, CLOBBER, instructions with asm_operands. get_attr_type() has a side
- effect on the instruction itself or on recog_data.
-
- This pattern of checking was borrowed from extract_insn() in recog.c and
- should be refactored to improve code reuse. */
-
-int
-insn_is_nacl_lea(rtx insn)
-{
- rtx body = PATTERN(insn);
-
- if (!TARGET_64BIT)
- return 0;
-
- switch (GET_CODE (body))
- {
- case USE:
- case CLOBBER:
- case ASM_INPUT:
- case ADDR_VEC:
- case ADDR_DIFF_VEC:
- case ASM_OPERANDS:
- return 0;
-
- case SET:
- if (GET_CODE (SET_SRC (body)) == ASM_OPERANDS)
- return 0;
- else
- goto normal_insn;
- case PARALLEL:
- if ((GET_CODE (XVECEXP (body, 0, 0)) == SET
- && GET_CODE (SET_SRC (XVECEXP (body, 0, 0))) == ASM_OPERANDS)
- || GET_CODE (XVECEXP (body, 0, 0)) == ASM_OPERANDS)
- return 0;
- else
- goto normal_insn;
- default:
- normal_insn:
- return get_attr_type (insn) == TYPE_LEA;
- }
-}
-
static int
gen_r15(rtx reg)
{
« no previous file with comments | « gcc/gcc/caller-save.c ('k') | gcc/gcc/config/i386/i386-protos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698