JDK-8296243 : [IR Framework] Fix issues with IRNode.ALLOC* regexes
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 20
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • CPU: ppc
  • Submitted: 2022-11-02
  • Updated: 2022-11-07
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 20
20Unresolved
Related Reports
Relates :  
Description
There are two problems with IRNode.ALLOC_ARRAY* regexes:
- On PPC64, we do not account for an LI instruction which matches the array size. As a result, we could miss some array allocations with the ALLOC_ARRAY regexes
- The new IRNode.ALLOC regex which can be matched on the independent ideal phases by using the name of the IR node "Allocate" also matches "AllocateArray". This should be changed.

Original report:

Since JDK-8280378, the test testlibrary_tests/ir_framework/tests/TestPhaseIRMatching.java reports:
"Expected Failures" WITHOUT "Found Failures":
Failure[methodName=alloc, irRuleId=1, compilePhase=PRINT_OPTO_ASSEMBLY, checkAttributeType=FAIL_ON, constraintId=2]
Failure[methodName=alloc, irRuleId=1, compilePhase=PRINT_OPTO_ASSEMBLY, checkAttributeType=COUNTS, constraintId=2]
"Found Failures" WITHOUT "Expected Failures":
[]

Comments
ILW = New IR framework test fails on PPC, single test and PPC only, no workaround = MLH = P4
03-11-2022