Add type hint class to VP - #6801
Conversation
|
This PR is related to eclipse-openj9/openj9#16265 which implements @vijaysun-omr @jdmpapin May I ask you to review this change? Thank you! |
|
@vijaysun-omr @jdmpapin Just following up on the review of this PR. Thank you! |
jdmpapin
left a comment
There was a problem hiding this comment.
Would you mind removing the blank line after the co-authored-by line in the commit message? GitHub only picks up metadata like that when there are no blank lines afterward
f2799c7 to
bb6ab93
Compare
|
@jdmpapin @vijaysun-omr All comments are addressed. Ready for another review. Thanks! |
jdmpapin
left a comment
There was a problem hiding this comment.
LGTM, with two very minor (optional) comments
|
@vijaysun-omr, this is ready for your review now |
Type hint class is added to `VPClass` and `VPClassType`. It suggests the value is LIKELY an exact type. It could be used along with runtime checks on this speculation for other optimizations. This change also adds the following APIs: - Add `findLikelySubtype` to look for a likely sub type given a `TR_OpaqueClassBlock` pointer or a class signature. - Add `createTypeHintConstraint` to create a constraint if a likely sub type for a given class signature is found Co-Authored-By: Devin Papineau <devin@ajdmp.ca> Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
bb6ab93 to
9b0638d
Compare
|
Jenkins build all |
|
linux_ppc-64_le failed. It might be related to #6571 linux_riscv64 failed with the following error message. Looks the same issue as #6704 |
|
Thanks Annabelle. I am merging since these are known problems, other checks have passed, and reviews are also done. |
Type hint class is added to
VPClassandVPClassType. It suggeststhe value is LIKELY an exact type. It could be used along with
runtime checks on this speculation for other optimizations.
This change also adds the following APIs:
findLikelySubtypeto look for a likely sub typegiven a
TR_OpaqueClassBlockpointer or a class signature.createTypeHintConstraintto create a constraint ifa likely sub type for a given class signature is found
Co-Authored-By: Devin Papineau devin@ajdmp.ca
Signed-off-by: Annabelle Huo Annabelle.Huo@ibm.com