Skip to content

Commit 5d9bde7

Browse files
committed
LV: fix thinko
1 parent a43fe4f commit 5d9bde7

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
@@ -8623,7 +8623,7 @@ VPWidenRecipe *VPRecipeBuilder::tryToWiden(Instruction *I,
86238623
// to replace operands with constants.
86248624
auto GetConstantViaSCEV = [this](VPValue *Op) {
86258625
ScalarEvolution &SE = *PSE.getSE();
8626-
Value *V = dyn_cast_if_present<Value>(Op->getUnderlyingValue());
8626+
Value *V = Op->getUnderlyingValue();
86278627
if (!V || !SE.isSCEVable(V->getType()))
86288628
return Op;
86298629
if (auto *C = dyn_cast<SCEVConstant>(SE.getSCEV(V)))

0 commit comments

Comments
 (0)