File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/CodeGen/GlobalISel Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1209,8 +1209,8 @@ LLT llvm::getGCDType(LLT OrigTy, LLT TargetTy) {
1209
1209
// vector and one is a scalar. If both types are scalars, the GCD type is the
1210
1210
// GCD between the two scalar sizes. If one is vector and one is scalar, then
1211
1211
// the GCD type is the GCD between the scalar and the vector element size.
1212
- LLT OrigScalar = OrigTy.isVector () ? OrigTy. getElementType () : OrigTy ;
1213
- LLT TargetScalar = TargetTy.isVector () ? TargetTy. getElementType () : TargetTy ;
1212
+ LLT OrigScalar = OrigTy.getScalarType () ;
1213
+ LLT TargetScalar = TargetTy.getScalarType () ;
1214
1214
unsigned GCD = std::gcd (OrigScalar.getSizeInBits ().getFixedValue (),
1215
1215
TargetScalar.getSizeInBits ().getFixedValue ());
1216
1216
return LLT::scalar (GCD);
You can’t perform that action at this time.
0 commit comments