[x64] Generate test reg,reg instead of cmp reg,0.
authorBenedikt Meurer <bmeurer@chromium.org>
Thu, 19 Feb 2015 07:45:35 +0000 (08:45 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Thu, 19 Feb 2015 07:45:52 +0000 (07:45 +0000)
commita7fb5ed400701b22c455d0ad410bc98b211e5730
tree5a9401b9350df561bba599af20625ab83ad6df58
parentb00ea0f1254f0746260b1d2841610833cdf4bd09
[x64] Generate test reg,reg instead of cmp reg,0.

The instruction sequence is shorter and saves decoding bandwidth.

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/916543004

Cr-Commit-Position: refs/heads/master@{#26734}
src/compiler/x64/code-generator-x64.cc