Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Pranith Kumar
Paolo Bonzini writes: > On 14/07/2016 22:29, Pranith Kumar wrote: >> +} else if (curr_mb_type == TCG_BAR_STRL && >> + prev_mb_type == TCG_BAR_LDAQ) { >> +/* Consecutive load-acquire and store-release barriers >> + * can be merged i

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Pranith Kumar
Alex Bennée writes: > Pranith Kumar writes: > >> This patch applies on top of the fence generation patch series. >> >> This commit optimizes fence instructions. Two optimizations are >> currently implemented. These are: >> >> 1. Unnecessary duplicate fence instructions >> >>If the same fence

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Pranith Kumar
Alex Bennée writes: > Pranith Kumar writes: > >> This patch applies on top of the fence generation patch series. >> >> This commit optimizes fence instructions. Two optimizations are >> currently implemented. These are: >> >> 1. Unnecessary duplicate fence instructions >> >>If the same fence

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Pranith Kumar
Richard Henderson writes: > On 07/15/2016 01:59 AM, Pranith Kumar wrote: >> This patch applies on top of the fence generation patch series. >> >> This commit optimizes fence instructions. Two optimizations are >> currently implemented. These are: >> >> 1. Unnecessary duplicate fence instructions

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Paolo Bonzini
On 14/07/2016 22:29, Pranith Kumar wrote: > +} else if (curr_mb_type == TCG_BAR_STRL && > + prev_mb_type == TCG_BAR_LDAQ) { > +/* Consecutive load-acquire and store-release barriers > + * can be merged into one stronger SC barrier

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Alex Bennée
Pranith Kumar writes: > This patch applies on top of the fence generation patch series. > > This commit optimizes fence instructions. Two optimizations are > currently implemented. These are: > > 1. Unnecessary duplicate fence instructions > >If the same fence instruction is detected consecu

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-19 Thread Alex Bennée
Pranith Kumar writes: > This patch applies on top of the fence generation patch series. > > This commit optimizes fence instructions. Two optimizations are > currently implemented. These are: > > 1. Unnecessary duplicate fence instructions > >If the same fence instruction is detected consecu

Re: [Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-18 Thread Richard Henderson
On 07/15/2016 01:59 AM, Pranith Kumar wrote: This patch applies on top of the fence generation patch series. This commit optimizes fence instructions. Two optimizations are currently implemented. These are: 1. Unnecessary duplicate fence instructions If the same fence instruction is detecte

[Qemu-devel] [RFC PATCH] tcg: Optimize fence instructions

2016-07-14 Thread Pranith Kumar
This patch applies on top of the fence generation patch series. This commit optimizes fence instructions. Two optimizations are currently implemented. These are: 1. Unnecessary duplicate fence instructions If the same fence instruction is detected consecutively, we remove one instance of i