[PATCH] D30439: [AMDGPU] New method to estimate register pressure
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 08:31:27 PST 2017
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/GCNSchedStrategy.cpp:415
+ if (LaneMask.any()) {
+ LiveIns[Reg] = LaneBitmask::getNone();
+ setMask(MRI, SRI, Reg, LiveIns[Reg], LaneMask, SGPRs, VGPRs);
----------------
vpykhtin wrote:
> rampitec wrote:
> > vpykhtin wrote:
> > > When a map is indexed for non-existent key the value constructed with default constructor is inserted for this key. LaneBitmask::getNone ()is just a syntax sugar for LaneBitmask(). So you can just read LiveIns[Reg] here without initializing it.
> > LaneBitmask does not have default initializer value. I guess it worth nothing that LaneBitmask() should result in zero initialization.
> It has, though using C++11 syntax:
>
> LineBitmask.h: line 77
> private:
> Type Mask = 0;
> };
Oh, thanks!
Repository:
rL LLVM
https://reviews.llvm.org/D30439
More information about the llvm-commits
mailing list