Skip to content

Commit 7df0f04

Browse files
committed
Address comments
1 parent e2e6062 commit 7df0f04

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4089,10 +4089,10 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
40894089
unsigned MaxVFtimesIC =
40904090
UserIC ? *MaxPowerOf2RuntimeVF * UserIC : *MaxPowerOf2RuntimeVF;
40914091
ScalarEvolution *SE = PSE.getSE();
4092-
// Currently only loops with countable exits are vectorized, but calling
4093-
// getSymbolicMaxBackedgeTakenCount allows enablement work for loops with
4094-
// uncountable exits whilst also ensuring the symbolic maximum and known
4095-
// back-edge taken count remain identical for loops with countable exits.
4092+
4093+
// Calling getSymbolicMaxBackedgeTakenCount enables support for loops
4094+
// with uncountable exits. For countable loops, the symbolic maximum must
4095+
// remain identical to the known back-edge taken count.
40964096
const SCEV *BackedgeTakenCount = PSE.getSymbolicMaxBackedgeTakenCount();
40974097
assert(Legal->hasUncountableEarlyExit() ||
40984098
(BackedgeTakenCount == PSE.getBackedgeTakenCount()) &&

llvm/test/Transforms/LoopVectorize/RISCV/vectorize-force-tail-with-evl-early-exit.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
; RUN: opt -passes=loop-vectorize -force-tail-folding-style=data-with-evl -prefer-predicate-over-epilogue=predicate-dont-vectorize \
33
; RUN: -mtriple=riscv64 -mattr=+v -S -enable-early-exit-vectorization %s | FileCheck %s
44

5-
; REQUIRES: asserts
6-
75
declare void @init(ptr)
86

97
define i64 @multi_exiting_to_different_exits_live_in_exit_values() {

0 commit comments

Comments
 (0)