[PATCH][simplify-rtx][trivial] Use std::swap instead of manually swapping

Jeff Law law@redhat.com
Mon Apr 27 13:38:00 GMT 2015


On 04/27/2015 03:55 AM, Kyrill Tkachov wrote:
> Hi all,
>
> This patch replaces in simplify-rtx.c the manual swapping of values with
> std::swap.
> Precedents suggest these are considered obvious changes.
>
> Bootstrapped and tested on aarch64, x86_64.
>
> Will commit as obvious in a couple of days if no one objects
>
> Thanks,
> Kyrill
>
> 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>      * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
>      of manually swapping.
>      (simplify_associative_operation): Likewise.
>      (simplify_binary_operation): Likewise.
>      (simplify_plus_minus): Likewise.
>      (simplify_relational_operation): Likewise.
>      (simplify_ternary_operation): Likewise.
OK.  And just to be explicit, please consider any patch which just 
converts manual swapping to std::swap as pre-approved.  Just post them 
for archival purposes.


jeff



More information about the Gcc-patches mailing list