Skip to content

Commit 0330df2

Browse files
committed
fix GCD type
1 parent feaea47 commit 0330df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ LLT llvm::getGCDType(LLT OrigTy, LLT TargetTy) {
12471247
return OrigTy;
12481248

12491249
if (OrigTy.isVector() && TargetTy.isVector()) {
1250-
LLT OrigElt = LLT::scalar(OrigTy.getScalarSizeInBits());
1250+
LLT OrigElt = OrigTy.getElementType();
12511251

12521252
// TODO: The docstring for this function says the intention is to use this
12531253
// function to build MERGE/UNMERGE instructions. It won't be the case that

0 commit comments

Comments
 (0)