Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b5d37c6f
Commit
b5d37c6f
authored
Dec 29, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Dec 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve alias analysis on ia64
From-SVN: r38549
parent
de10dbf5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
14 deletions
+37
-14
gcc/ChangeLog
+10
-0
gcc/config/ia64/ia64-protos.h
+1
-1
gcc/config/ia64/ia64.c
+15
-4
gcc/config/ia64/ia64.md
+11
-9
No files found.
gcc/ChangeLog
View file @
b5d37c6f
2000-12-29 Bernd Schmidt <bernds@redhat.com>
2000-12-29 Bernd Schmidt <bernds@redhat.com>
* ia64.c (ia64_expand_load_address): Accept additional scratch
register argument. All callers & prototype changed.
Use scratch register when generating load_symptr insns.
* ia64.md (movdi_symbolic): Clobber a scratch register. Use it
when calling ia64_expand_load_address.
(movdi): Generate movdi_symbolic with additional operand.
(load_gprel64): Use pic_offset_table_rtx instead of (reg:DI 1).
(load_symptr): Likewise. Use additional operand as a scratch
register instead of generating it here.
* basic-block.h: Add a comment.
* basic-block.h: Add a comment.
* flow.c (PROP_POSTRELOAD): New macro.
* flow.c (PROP_POSTRELOAD): New macro.
(update_life_info): Add it to prop_flags.
(update_life_info): Add it to prop_flags.
...
...
gcc/config/ia64/ia64-protos.h
View file @
b5d37c6f
...
@@ -81,7 +81,7 @@ extern void ia64_function_prologue PARAMS((FILE *, int));
...
@@ -81,7 +81,7 @@ extern void ia64_function_prologue PARAMS((FILE *, int));
extern
void
ia64_function_epilogue
PARAMS
((
FILE
*
,
int
));
extern
void
ia64_function_epilogue
PARAMS
((
FILE
*
,
int
));
extern
int
ia64_direct_return
PARAMS
((
void
));
extern
int
ia64_direct_return
PARAMS
((
void
));
extern
void
ia64_expand_load_address
PARAMS
((
rtx
,
rtx
));
extern
void
ia64_expand_load_address
PARAMS
((
rtx
,
rtx
,
rtx
));
extern
int
ia64_hard_regno_rename_ok
PARAMS
((
int
,
int
));
extern
int
ia64_hard_regno_rename_ok
PARAMS
((
int
,
int
));
extern
void
ia64_initialize_trampoline
PARAMS
((
rtx
,
rtx
,
rtx
));
extern
void
ia64_initialize_trampoline
PARAMS
((
rtx
,
rtx
,
rtx
));
...
...
gcc/config/ia64/ia64.c
View file @
b5d37c6f
...
@@ -798,8 +798,8 @@ ia64_depz_field_mask (rop, rshift)
...
@@ -798,8 +798,8 @@ ia64_depz_field_mask (rop, rshift)
/* ??? Should generalize this, so that we can also support 32 bit pointers. */
/* ??? Should generalize this, so that we can also support 32 bit pointers. */
void
void
ia64_expand_load_address
(
dest
,
src
)
ia64_expand_load_address
(
dest
,
src
,
scratch
)
rtx
dest
,
src
;
rtx
dest
,
src
,
scratch
;
{
{
rtx
temp
;
rtx
temp
;
...
@@ -831,11 +831,22 @@ ia64_expand_load_address (dest, src)
...
@@ -831,11 +831,22 @@ ia64_expand_load_address (dest, src)
lo
=
((
ofs
&
0x3fff
)
^
0x2000
)
-
0x2000
;
lo
=
((
ofs
&
0x3fff
)
^
0x2000
)
-
0x2000
;
hi
=
ofs
-
lo
;
hi
=
ofs
-
lo
;
emit_insn
(
gen_load_symptr
(
subtarget
,
plus_constant
(
sym
,
hi
)));
if
(
!
scratch
)
scratch
=
no_new_pseudos
?
subtarget
:
gen_reg_rtx
(
DImode
);
emit_insn
(
gen_load_symptr
(
subtarget
,
plus_constant
(
sym
,
hi
),
scratch
));
emit_insn
(
gen_adddi3
(
temp
,
subtarget
,
GEN_INT
(
lo
)));
emit_insn
(
gen_adddi3
(
temp
,
subtarget
,
GEN_INT
(
lo
)));
}
}
else
else
emit_insn
(
gen_load_symptr
(
temp
,
src
));
{
rtx
insn
;
if
(
!
scratch
)
scratch
=
no_new_pseudos
?
temp
:
gen_reg_rtx
(
DImode
);
insn
=
emit_insn
(
gen_load_symptr
(
temp
,
src
,
scratch
));
REG_NOTES
(
insn
)
=
gen_rtx_EXPR_LIST
(
REG_EQUAL
,
src
,
REG_NOTES
(
insn
));
}
if
(
temp
!=
dest
)
if
(
temp
!=
dest
)
emit_move_insn
(
dest
,
temp
);
emit_move_insn
(
dest
,
temp
);
...
...
gcc/config/ia64/ia64.md
View file @
b5d37c6f
...
@@ -484,9 +484,9 @@
...
@@ -484,9 +484,9 @@
if (rtx_equal_function_value_matters
if (rtx_equal_function_value_matters
&& ! (GET_CODE (operands
[
1
]
) == SYMBOL_REF
&& ! (GET_CODE (operands
[
1
]
) == SYMBOL_REF
&& SYMBOL_REF_FLAG (operands
[
1
]
)))
&& SYMBOL_REF_FLAG (operands
[
1
]
)))
emit_insn (gen_movdi_symbolic (operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_movdi_symbolic (operands
[
0
]
, operands
[
1
]
, gen_reg_rtx (DImode)
));
else
else
ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
);
ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
, NULL_RTX
);
DONE;
DONE;
}
}
}")
}")
...
@@ -551,12 +551,13 @@
...
@@ -551,12 +551,13 @@
(define_insn_and_split "movdi_symbolic"
(define_insn_and_split "movdi_symbolic"
[
(set (match_operand:DI 0 "register_operand" "=r")
[
(set (match_operand:DI 0 "register_operand" "=r")
(match_operand:DI 1 "symbolic_operand" "s"))
(match_operand:DI 1 "symbolic_operand" "s"))
(clobber (match_operand:DI 2 "register_operand" "+r"))
(use (reg:DI 1))]
(use (reg:DI 1))]
""
""
"
*
abort ();"
"
*
abort ();"
""
""
[
(const_int 0)
]
[
(const_int 0)
]
"ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
); DONE;")
"ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
, operands
[
2
]
); DONE;")
(define_insn "
*
movdi_internal_astep"
(define_insn "
*
movdi_internal_astep"
[
(set (match_operand:DI 0 "destination_operand"
[
(set (match_operand:DI 0 "destination_operand"
...
@@ -640,7 +641,7 @@
...
@@ -640,7 +641,7 @@
[
(const_int 0)
]
[
(const_int 0)
]
"
"
{
{
ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
);
ia64_expand_load_address (operands
[
0
]
, operands
[
1
]
, NULL_RTX
);
DONE;
DONE;
}")
}")
...
@@ -679,24 +680,25 @@
...
@@ -679,24 +680,25 @@
(define_expand "load_gprel64"
(define_expand "load_gprel64"
[
(set (match_dup 2)
[
(set (match_dup 2)
(minus:DI (match_operand:DI 1 "symbolic_operand" "") (
reg:DI 1
)))
(minus:DI (match_operand:DI 1 "symbolic_operand" "") (
match_dup 3
)))
(set (match_operand:DI 0 "register_operand" "")
(set (match_operand:DI 0 "register_operand" "")
(plus:DI (
reg:DI 1
) (match_dup 2)))]
(plus:DI (
match_dup 3
) (match_dup 2)))]
""
""
"
"
{
{
operands
[
2
]
= no_new_pseudos ? operands
[
0
]
: gen_reg_rtx (DImode);
operands
[
2
]
= no_new_pseudos ? operands
[
0
]
: gen_reg_rtx (DImode);
operands
[
3
]
= pic_offset_table_rtx;
}")
}")
(define_expand "load_symptr"
(define_expand "load_symptr"
[
(set (match_
dup 2
)
[
(set (match_
operand:DI 2 "register_operand" ""
)
(plus:DI (
reg:DI 1
) (match_operand:DI 1 "got_symbolic_operand" "")))
(plus:DI (
match_dup 4
) (match_operand:DI 1 "got_symbolic_operand" "")))
(set (match_operand:DI 0 "register_operand" "") (match_dup 3))]
(set (match_operand:DI 0 "register_operand" "") (match_dup 3))]
""
""
"
"
{
{
operands
[
2
]
= no_new_pseudos ? operands
[
0
]
: gen_reg_rtx (DImode);
operands
[
3
]
= gen_rtx_MEM (DImode, operands
[
2
]
);
operands
[
3
]
= gen_rtx_MEM (DImode, operands
[
2
]
);
operands
[
4
]
= pic_offset_table_rtx;
RTX_UNCHANGING_P (operands
[
3
]
) = 1;
RTX_UNCHANGING_P (operands
[
3
]
) = 1;
}")
}")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment