projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e908213
)
* expmed.c (expand_mult): Use std::swap.
author
Jakub Jelinek
<jakub@redhat.com>
Wed, 3 Dec 2014 20:35:45 +0000
(21:35 +0100)
committer
Jakub Jelinek
<jakub@gcc.gnu.org>
Wed, 3 Dec 2014 20:35:45 +0000
(21:35 +0100)
From-SVN: r218332
gcc/ChangeLog
patch
|
blob
|
history
gcc/expmed.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index aa2f9589e5f5acd85c2d0335b8c05fc37f6233c0..91613c837b210ab129d5575f12895a07357d1e9d 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,5
+1,7
@@
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.
diff --git
a/gcc/expmed.c
b/gcc/expmed.c
index 708f04f11c5bcd8b1013009b4fed0475e4da5362..0970a22b94609028b65f485c303a54a854cd96dc 100644
(file)
--- a/
gcc/expmed.c
+++ b/
gcc/expmed.c
@@
-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. */