We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175740b commit bc56bcdCopy full SHA for bc56bcd
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
@@ -307,9 +307,9 @@ bool GCNTTIImpl::hasBranchDivergence(const Function *F) const {
307
}
308
309
unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) const {
310
- if (auto VTy = dyn_cast<FixedVectorType>(Tp)) {
+ if (FixedVectorType *VTy = dyn_cast<FixedVectorType>(Tp)) {
311
if (DL.getTypeSizeInBits(VTy->getElementType()) == 8) {
312
- auto ElCount = VTy->getElementCount().getFixedValue();
+ unsigned ElCount = VTy->getElementCount().getFixedValue();
313
return ElCount / 4;
314
315
0 commit comments