Skip to content

Commit c82a6a0

Browse files
authored
[AMDGPU] Use correct vector elt type when shrinking mfma scale (#123043)
This might be a copy/paste error. I don't think this an issue in practice as the builtins/intrinsics are only legal with identical vector element types.
1 parent f22af59 commit c82a6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
13461346

13471347
if (Src1Ty->getNumElements() > Src1NumElts) {
13481348
Src1 = IC.Builder.CreateExtractVector(
1349-
FixedVectorType::get(Src0Ty->getElementType(), Src1NumElts), Src1,
1349+
FixedVectorType::get(Src1Ty->getElementType(), Src1NumElts), Src1,
13501350
IC.Builder.getInt64(0));
13511351
MadeChange = true;
13521352
}

0 commit comments

Comments
 (0)