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
4c278134
Commit
4c278134
authored
Dec 03, 2014
by
Jakub Jelinek
Committed by
Jakub Jelinek
Dec 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expmed.c (expand_mult): Use std::swap.
From-SVN: r218332
parent
e9082138
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
gcc/ChangeLog
+2
-0
gcc/expmed.c
+1
-5
No files found.
gcc/ChangeLog
View file @
4c278134
2014
-
12
-
03
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
*
expmed
.
c
(
expand_mult
):
Use
std
::
swap
.
PR
c
/
59708
*
expmed
.
c
(
expand_widening_mult
):
Return
const0_rtx
if
coeff
is
0.
gcc/expmed.c
View file @
4c278134
...
...
@@ -3087,11 +3087,7 @@ expand_mult (machine_mode mode, rtx op0, rtx op1, rtx target,
bool
do_trapv
=
flag_trapv
&&
SCALAR_INT_MODE_P
(
mode
)
&&
!
unsignedp
;
if
(
CONSTANT_P
(
op0
))
{
rtx
temp
=
op0
;
op0
=
op1
;
op1
=
temp
;
}
std
::
swap
(
op0
,
op1
);
/* For vectors, there are several simplifications that can be made if
all elements of the vector constant are identical. */
...
...
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