Fix a bug in the placement of minus-zero checks and in GVN.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 31 Jan 2011 12:36:54 +0000 (12:36 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 31 Jan 2011 12:36:54 +0000 (12:36 +0000)
commit4e7ddab6dc5153e9b963daea9022bf0e3d50a2ae
tree0081cf42566f81c36cea1b8204f4bbfc62ad9305
parent09368a0af67519449b4a06c1ee1d9f04d2ef68d8
Fix a bug in the placement of minus-zero checks and in GVN.

1. The placement of checks for negative zero has to be computed after
all conversion instructions have been inserted. I separated the code
into its own phase.

2. GVN need to take instruction flags into account when comparing
instructions for redundancy.

Review URL: http://codereview.chromium.org/6260035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6534 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen-instructions.cc
src/hydrogen.cc
src/hydrogen.h
test/mjsunit/compiler/regress-1085.js [new file with mode: 0644]