Re: [Beignet] [PATCH 3/5] GBE: add two helper routines for liveness partially update.

2015-09-20 Thread Zhigang Gong
On Mon, Sep 21, 2015 at 02:51:26AM +, Song, Ruiling wrote: > > + > > + void Liveness::replaceRegs(const map &replaceMap) > > + { > > + > > +for (auto &pair : liveness) { > > + BlockInfo &info = *pair.second; > > + BasicBlock *bb = const_cast(&info.bb); > > + for (auto &pair

Re: [Beignet] [PATCH 3/5] GBE: add two helper routines for liveness partially update.

2015-09-20 Thread Song, Ruiling
> + > + void Liveness::replaceRegs(const map &replaceMap) > + { > + > +for (auto &pair : liveness) { > + BlockInfo &info = *pair.second; > + BasicBlock *bb = const_cast(&info.bb); > + for (auto &pair : replaceMap) { > +Register from = pair.first; > +Register to =

[Beignet] [PATCH 3/5] GBE: add two helper routines for liveness partially update.

2015-08-31 Thread Zhigang Gong
We don't need to recompute the entire liveness information for all cases. This is a preparation patch for further phi copy optimization. Signed-off-by: Zhigang Gong --- backend/src/ir/liveness.cpp | 33 + backend/src/ir/liveness.hpp | 7 +++ 2 files changed,