Skip to content

Commit ff78d23

Browse files
committed
[AArch64] Ensure Source1 and Source2 are initialized.
Try to appease the sanatizers builders by making sure the Source1 and Source2 and initialized when passed to the tuple. See #139331.
1 parent b3e7e4b commit ff78d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5485,7 +5485,7 @@ InstructionCost AArch64TTIImpl::getShuffleCost(
54855485
SmallVector<int> NMask;
54865486
// Split the existing mask into chunks of size LTNumElts. Track the source
54875487
// sub-vectors to ensure the result has at most 2 inputs.
5488-
unsigned Source1, Source2;
5488+
unsigned Source1 = 0, Source2 = 0;
54895489
unsigned NumSources = 0;
54905490
for (unsigned E = 0; E < LTNumElts; E++) {
54915491
int MaskElt = (N * LTNumElts + E < TpNumElts) ? Mask[N * LTNumElts + E]

0 commit comments

Comments
 (0)