Skip to content

Commit 7aba6a0

Browse files
committed
[LV] Fix value that could be read uninitialized.
This should fix http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/18569
1 parent 11a04a6 commit 7aba6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6908,7 +6908,7 @@ VPWidenCallRecipe *VPRecipeBuilder::tryToWidenCall(Instruction *I,
69086908
// The flag shows whether we use Intrinsic or a usual Call for vectorized
69096909
// version of the instruction.
69106910
// Is it beneficial to perform intrinsic call compared to lib call?
6911-
bool NeedToScalarize;
6911+
bool NeedToScalarize = false;
69126912
unsigned CallCost = CM.getVectorCallCost(CI, VF, NeedToScalarize);
69136913
bool UseVectorIntrinsic =
69146914
ID && CM.getVectorIntrinsicCost(CI, VF) <= CallCost;

0 commit comments

Comments
 (0)