[lworld+vector] RFR: 8304310: Initial compilers and runtime handling for multifield backed vectors. [v7]

Jatin Bhateja jbhateja at openjdk.org
Fri Apr 14 07:03:11 UTC 2023


> Please find below the summary of changes included with the patch:
>   
> a) _ci Model:_
>    oops model creates separate fieldDescriptor/FieldInfo for each scalar field of a multifield bundle, root field is marked as multifield_base and non -  root (synthetic) fileds carry a multifield flag. To ease vector IR construction ci only exposes base multifield and ciType holding bundle size to compilers.
> 
> b) _C1 compiler:_
>    Special handling to copy entire multifield bundle during withfield bytecode processing.
> 
> c) _C2 compiler:_
>    VectorBox becomes a derivative of InlineType IR node, changes in vector box/unbox expansions. Preventing scalarization of Vector arguments and return values.
> 
> d) _Runtime:_
>    Changes in object re-construction during deoptimization since now concrete vectors have multifield based payloads. Payload (VectorPayloadMF) is a primitive class object which gets fully flattened within its parent/holding instance i.e. a concrete vector, special handling has been added for non-flattened case where payload is allocated over heap and concrete vector payload field is assigned its reference.
> 
> e) Added type specific multifield payloads to ease vector IR creation by C2, this will ensure bundle type and C2 IR type are compatible.               
> 
> Scope of current changes is limited to Vector types only, shuffles and masks are still backed by array based payloads. This PoC patch has been validated over vector only tests. More robust validation will be done in due course.
> 
> More information can be found at following link
> [https://cr.openjdk.org/~jbhateja/vectorIntrinsics/Valhalla/lworld%2Bvector.pptx](https://cr.openjdk.org/~jbhateja/vectorIntrinsics/Valhalla/lworld%2Bvector.pptx)
> 
> Please share your feedback and suggestions.
> 
> Best Regards,
> Jatin

Jatin Bhateja has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains three new commits since the last revision:

 - Extend box forwarding transformation across Phi nodes.
 - Code refactoring around vector boxing/unboxing.
 - Review comments resolutions.

-------------

Changes:
  - all: https://git.openjdk.org/valhalla/pull/833/files
  - new: https://git.openjdk.org/valhalla/pull/833/files/c1bb7fd5..b5dd30a0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=833&range=06
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=833&range=05-06

  Stats: 322 lines in 8 files changed: 250 ins; 26 del; 46 mod
  Patch: https://git.openjdk.org/valhalla/pull/833.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/833/head:pull/833

PR: https://git.openjdk.org/valhalla/pull/833



More information about the valhalla-dev mailing list