Skip to content

Commit 6a4406f

Browse files
committed
[AMDGPU] Fix missing IsExact flag when expanding vector binary operator
1 parent 8cb4eb9 commit 6a4406f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,9 @@ bool AMDGPUCodeGenPrepareImpl::visitBinaryOperator(BinaryOperator &I) {
15941594
}
15951595
}
15961596

1597+
if (auto *NewEltI = dyn_cast<Instruction>(NewElt))
1598+
NewEltI->setIsExact(I.isExact());
1599+
15971600
NewDiv = Builder.CreateInsertElement(NewDiv, NewElt, N);
15981601
}
15991602
} else {

0 commit comments

Comments
 (0)