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
8f03b1af
Commit
8f03b1af
authored
Jul 13, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last change.
From-SVN: r7764
parent
4c7bdca6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
gcc/fold-const.c
+0
-18
No files found.
gcc/fold-const.c
View file @
8f03b1af
...
@@ -3751,24 +3751,6 @@ fold (expr)
...
@@ -3751,24 +3751,6 @@ fold (expr)
&&
operand_equal_p
(
TREE_OPERAND
(
arg0
,
1
),
arg1
,
0
))
&&
operand_equal_p
(
TREE_OPERAND
(
arg0
,
1
),
arg1
,
0
))
return
TREE_OPERAND
(
arg0
,
0
);
return
TREE_OPERAND
(
arg0
,
0
);
/* If we have ((A / C1) * C2) with C1 and C2 constant,
C2 >= C1, and the division an unsigned CEIL_DIV_EXPR,
we know that the addition that's part of the CEIL_DIV_EXPR
cannot overflow while the generic CEIL_DIV_EXPR does not.
So convert it into a TRUNC_DIV_EXPR of an add. */
if
(
TREE_CODE
(
arg0
)
==
CEIL_DIV_EXPR
&&
TREE_UNSIGNED
(
type
)
&&
TREE_CODE
(
arg1
)
==
INTEGER_CST
&&
TREE_CODE
(
TREE_OPERAND
(
arg0
,
1
))
==
INTEGER_CST
&&
!
tree_int_cst_lt
(
arg1
,
TREE_OPERAND
(
arg0
,
1
)))
return
build
(
MULT_EXPR
,
type
,
build
(
TRUNC_DIV_EXPR
,
type
,
build
(
PLUS_EXPR
,
type
,
TREE_OPERAND
(
TREE_OPERAND
(
arg0
,
0
),
0
)),
const_binop
(
MINUS_EXPR
,
TREE_OPERAND
(
arg0
,
1
),
integer_one_node
,
0
)),
arg1
);
/* (a * (1 << b)) is (a << b) */
/* (a * (1 << b)) is (a << b) */
if
(
TREE_CODE
(
arg1
)
==
LSHIFT_EXPR
if
(
TREE_CODE
(
arg1
)
==
LSHIFT_EXPR
&&
integer_onep
(
TREE_OPERAND
(
arg1
,
0
)))
&&
integer_onep
(
TREE_OPERAND
(
arg1
,
0
)))
...
...
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