Skip to content

Commit 712560b

Browse files
committed
update use in ConstantFolding
- pass down the nullptr as there is no folding of any target intrinsics
1 parent efff215 commit 712560b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ static Constant *ConstantFoldFixedVectorCall(
34473447
// Gather a column of constants.
34483448
for (unsigned J = 0, JE = Operands.size(); J != JE; ++J) {
34493449
// Some intrinsics use a scalar type for certain arguments.
3450-
if (isVectorIntrinsicWithScalarOpAtArg(IntrinsicID, J)) {
3450+
if (isVectorIntrinsicWithScalarOpAtArg(IntrinsicID, J, /*TTI=*/nullptr)) {
34513451
Lane[J] = Operands[J];
34523452
continue;
34533453
}

0 commit comments

Comments
 (0)