JDK-6463375 : Fix the condition for a commutative operation's inputs swapping during final graph reshaping
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2006-08-24
  • Updated: 2010-04-03
  • Resolved: 2006-11-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
Description
The condition in final_graph_reshaping_impl() is incomplete.
It misses the check for commutative nodes MaxI and MinI.
And it allows to swap the input from a loop's Phi node to the second input
of a commutative node.
All this increse a register pressure during RA.

Comments
SUGGESTED FIX Webrev: http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2006/20060824120305.kvn.6463375/workspace/webrevs/webrev-2006.08.24/index.html
24-08-2006

EVALUATION See description.
24-08-2006