Re: [Beignet] [PATCH 2/3] add basic structure for selection IR optimization

2015-10-08 Thread Yang, Rong R
The patch LGTM. > -Original Message- > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of > Guo Yejun > Sent: Monday, September 7, 2015 5:27 > To: beignet@lists.freedesktop.org > Cc: Guo, Yejun > Subject: [Beignet] [PATCH 2/3] add basic struc

[Beignet] [PATCH 2/3] add basic structure for selection IR optimization

2015-09-06 Thread Guo Yejun
The idea is that many optimzations can be done at selection IR level, which is nearly ISA-like *before* physical register allocation. The optimization here can help to reduce register use/spill. It is hard to do the optimzation in late ASM stage since the ASM instructions are encoded without struc