[PATCH] D74873: [AMDGPU] Define 16 bit VGPR subregs
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 12:47:49 PST 2020
rampitec marked 5 inline comments as done.
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:47
+
+ assert(getSubRegIndexLaneMask(AMDGPU::sub0).getAsInteger() == 3 &&
+ getSubRegIndexLaneMask(AMDGPU::sub31).getAsInteger() == (3ULL << 62) &&
----------------
arsenm wrote:
> Can this be a state_assert? I would hope getSubRegIndexLaneMask is constexpr
Unfortunately it is not a constexpr. I wanted to make a static assert right at getNumCoveredRegs(), but that did not fly.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74873/new/
https://reviews.llvm.org/D74873
More information about the llvm-commits
mailing list