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 4866dd6 commit e9e22e0Copy full SHA for e9e22e0
llvm/lib/CodeGen/GlobalISel/Utils.cpp
@@ -1177,10 +1177,8 @@ LLT llvm::getGCDType(LLT OrigTy, LLT TargetTy) {
1177
llvm_unreachable(
1178
"getGCDType not implemented between fixed and scalable vectors.");
1179
1180
- unsigned GCD = std::gcd(OrigTy.getElementCount().getKnownMinValue() *
1181
- OrigElt.getSizeInBits().getFixedValue(),
1182
- TargetTy.getElementCount().getKnownMinValue() *
1183
- TargetElt.getSizeInBits().getFixedValue());
+ unsigned GCD = std::gcd(OrigTy.getSizeInBits().getKnownMinValue(),
+ TargetTy.getSizeInBits().getKnownMinValue());
1184
if (GCD == OrigElt.getSizeInBits())
1185
return LLT::scalarOrVector(ElementCount::get(1, OrigTy.isScalable()),
1186
OrigElt);
0 commit comments