Re: [Mesa-dev] [PATCH 4/5] i965/fs: Extend SEL peephole to handle only matching MOVs.

2013-11-04 Thread Eric Anholt
Paul Berry writes: > On 31 October 2013 18:57, Matt Turner wrote: > >> Before this patch, the following code would not be optimized even though >> the first two instructions were common to the then and else blocks: >> >>(+f0) IF >>MOV dst0 ... >>MOV dst1 ... >>MOV dst2 ... >>

Re: [Mesa-dev] [PATCH 4/5] i965/fs: Extend SEL peephole to handle only matching MOVs.

2013-11-01 Thread Paul Berry
On 31 October 2013 18:57, Matt Turner wrote: > Before this patch, the following code would not be optimized even though > the first two instructions were common to the then and else blocks: > >(+f0) IF >MOV dst0 ... >MOV dst1 ... >MOV dst2 ... >ELSE >MOV dst0 ... >MOV

[Mesa-dev] [PATCH 4/5] i965/fs: Extend SEL peephole to handle only matching MOVs.

2013-10-31 Thread Matt Turner
Before this patch, the following code would not be optimized even though the first two instructions were common to the then and else blocks: (+f0) IF MOV dst0 ... MOV dst1 ... MOV dst2 ... ELSE MOV dst0 ... MOV dst1 ... MOV dst3 ... ENDIF This commit extends the peephol