Skip to content

Commit 46eded7

Browse files
committed
[LoopVectorize] Replace dyn_cast with isa to suppress an unused variable warning. NFC
1 parent 7ff7df1 commit 46eded7

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
@@ -9088,7 +9088,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
90889088
VecOp = FMulRecipe;
90899089
} else {
90909090
if (RecurrenceDescriptor::isMinMaxRecurrenceKind(Kind)) {
9091-
if (auto *Cmp = dyn_cast<VPWidenRecipe>(CurrentLink)) {
9091+
if (isa<VPWidenRecipe>(CurrentLink)) {
90929092
assert(isa<CmpInst>(CurrentLinkI) &&
90939093
"need to have the compare of the select");
90949094
continue;

0 commit comments

Comments
 (0)