Skip to content

Commit 28c1433

Browse files
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp:726:13: error: unused variable 'RedPhiRK' [-Werror,-Wunused-variable]
1 parent 20c5daa commit 28c1433

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ bool VPlanTransforms::handleMaxMinNumReductionsWithoutFastMath(VPlan &Plan) {
726726
RecurKind RedPhiRK = RedPhiR->getRecurrenceKind();
727727
assert((RedPhiRK == RecurKind::FMaxNum || RedPhiRK == RecurKind::FMinNum) &&
728728
"unsupported reduction");
729+
(void)RedPhiRK;
729730

730731
/// Check if the vector loop of \p Plan can early exit and restart
731732
/// execution of last vector iteration in the scalar loop. This requires all

0 commit comments

Comments
 (0)