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
c407b802
Commit
c407b802
authored
Dec 29, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_binary_operation, case MULT): Don't convert to ASHIFT if
still generating RTL. From-SVN: r6340
parent
bb7c21a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gcc/cse.c
+6
-2
No files found.
gcc/cse.c
View file @
c407b802
...
...
@@ -649,6 +649,8 @@ static void cse_set_around_loop PROTO((rtx, rtx, rtx));
static
rtx
cse_basic_block
PROTO
((
rtx
,
rtx
,
struct
branch_path
*
,
int
));
static
void
count_reg_usage
PROTO
((
rtx
,
int
*
,
rtx
,
int
));
extern
int
rtx_equal_function_value_matters
;
/* Return an estimate of the cost of computing rtx X.
One use is in cse, to decide which expression to keep in the hash table.
Another is in rtl generation, to pick the cheapest way to multiply.
...
...
@@ -3685,9 +3687,11 @@ simplify_binary_operation (code, mode, op0, op1)
if
(
op1
==
CONST1_RTX
(
mode
))
return
op0
;
/* Convert multiply by constant power of two into shift. */
/* Convert multiply by constant power of two into shift unless
we are still generating RTL. This test is a kludge. */
if
(
GET_CODE
(
op1
)
==
CONST_INT
&&
(
val
=
exact_log2
(
INTVAL
(
op1
)))
>=
0
)
&&
(
val
=
exact_log2
(
INTVAL
(
op1
)))
>=
0
&&
!
rtx_equal_function_value_matters
)
return
gen_rtx
(
ASHIFT
,
mode
,
op0
,
GEN_INT
(
val
));
if
(
GET_CODE
(
op1
)
==
CONST_DOUBLE
...
...
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