Commit 4c278134 by Jakub Jelinek Committed by Jakub Jelinek

* expmed.c (expand_mult): Use std::swap.

From-SVN: r218332
parent e9082138
2014-12-03 Jakub Jelinek <jakub@redhat.com> 2014-12-03 Jakub Jelinek <jakub@redhat.com>
* expmed.c (expand_mult): Use std::swap.
PR c/59708 PR c/59708
* expmed.c (expand_widening_mult): Return const0_rtx if * expmed.c (expand_widening_mult): Return const0_rtx if
coeff is 0. coeff is 0.
...@@ -3087,11 +3087,7 @@ expand_mult (machine_mode mode, rtx op0, rtx op1, rtx target, ...@@ -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; bool do_trapv = flag_trapv && SCALAR_INT_MODE_P (mode) && !unsignedp;
if (CONSTANT_P (op0)) if (CONSTANT_P (op0))
{ std::swap (op0, op1);
rtx temp = op0;
op0 = op1;
op1 = temp;
}
/* For vectors, there are several simplifications that can be made if /* For vectors, there are several simplifications that can be made if
all elements of the vector constant are identical. */ all elements of the vector constant are identical. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment