AARCH64: 8139041: Redundant DMB instructions (CORRECTED )

Christian Thalinger christian.thalinger at oracle.com
Wed Oct 14 19:45:13 UTC 2015


> On Oct 13, 2015, at 6:38 AM, Andrew Haley <aph at redhat.com> wrote:
> 
> On 10/10/2015 02:00 AM, Vladimir Kozlov wrote:
>> On 10/10/15 2:47 AM, Christian Thalinger wrote:
>>> 
>>>> On Oct 9, 2015, at 5:37 AM, Andrew Haley <aph at redhat.com> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> On 10/09/2015 03:59 PM, Roland Westrelin wrote:
>>>> 
>>>>>> There is a much simpler way: remove adjacent barriers in
>>>>>> MacroAssembler.  Thanks to the way that the AArch64 ISA is designed,
>>>>>> barriers can be merged simply by ORing them together.  Of course, this
>>>>>> technique works for C1 and C2, and it adds essentially nothing to the
>>>>>> compilation time.
>>>>>> 
>>>>>> http://cr.openjdk.java.net/~aph/8139041/
>>>>>> 
>>>>>> One thing which may be controversial is that I've added a field to
>>>>>> CodeBuffer to keep track of barriers and labels.  I had to do this
>>>>>> because when we're compiling there is (AFAICS) essentially nowhere
>>>>>> else to keep the state.
>>> 
>>> I don’t think it matters to have an additional field in CodeBuffer.  It’s a temporary data structure and we use much more memory for graphs.
>>> 
>>> I would even go that far and questioning putting it under #ifdef AARCH64.
>> 
>> +1 that.
> 
> OK.  I'm guessing that PPC will want to use this anyway.
> 
> http://cr.openjdk.java.net/~aph/8139041-2 <http://cr.openjdk.java.net/~aph/8139041-2>

Looks good.

> 
> Andrew.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20151014/6438cf7f/attachment.html>


More information about the hotspot-compiler-dev mailing list