RFR(M): 8154826: AArch64: take better advantage of base + shifted offset addressing mode
Doerr, Martin
martin.doerr at sap.com
Wed Apr 27 09:11:28 UTC 2016
Hi Roland,
I have removed the piece of my change which would interfere with your change.
But I'd like to explain the intention of skipping the transformation on non-x86 platforms in heap-based compressed oops mode.
(In simpler compressed oops modes decoding is very cheap so the transformation is probably good.)
Without transformation we have: LoadConP + Storage access
With transformation we have: LoadConN + DecodeN heap-based + Storage access
I believe X86 is the only platform which can match the DecodeN heap-based into the Storage access.
I guess other platforms should prefer the untransformed version:
PPC can load the ConP from constant pool. Decoding takes a lot of instructions, because the heap base needs to get loaded.
I didn't take a closer look at SPARC, but I thought it would use the constant pool as well. Not sure if the following comment is still correct:
// On sparc loading 32-bits constant and decoding it have less
// instructions (4) then load 64-bits constant (7).
Therefore, I had proposed the following code to skip:
+ // Matching decode heap based into an operand only works on X86.
+ #if !defined(X86)
+ if ((op == Op_ConN && Universe::narrow_oop_base() != NULL) ||
+ (op == Op_ConNKlass && Universe::narrow_klass_base() != NULL)) {
+ break;
+ }
+ #endif
+
Would this be good for aarch64 as well?
Would you like to include code which skips the transformation in your change or should this better be discussed independently?
Best regards,
Martin
-----Original Message-----
From: Roland Westrelin [mailto:rwestrel at redhat.com]
Sent: Mittwoch, 27. April 2016 10:00
To: Doerr, Martin <martin.doerr at sap.com>; hotspot-compiler-dev at openjdk.java.net
Subject: Re: RFR(M): 8154826: AArch64: take better advantage of base + shifted offset addressing mode
Hi Martin,
> seems like this issue is related to what I have sent out today:
> RFR(S): 8154836: VM crash due to "Base pointers must match"
> I also had to change the AddP case of final graph reshaping.
>
> In one part of my change, I skip the graph transformation on non-X86 platforms when we're running in heap based compressed oops mode.
>
> Maybe I have to remove that part of my change, or at least adapt it.
> We should make sure that the changes don't get pushed on the same day.
Thanks for the heads up. It looks like your change will get in before
mine. I'll send an updated webrev once it's integrated.
Roland.
More information about the hotspot-compiler-dev
mailing list