aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDavid Sherwood <david.sherwood@arm.com>2024-10-02 10:28:54 +0100
committerGitHub <noreply@github.com>2024-10-02 10:28:54 +0100
commit0b2403197ff026627cf27df63ce83cd53d1cd680 (patch)
tree537a9dda7fea757605949e6ec03161a2324e6685 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent3717048496074929250e8d75c033e0b3409eb063 (diff)
downloadllvm-0b2403197ff026627cf27df63ce83cd53d1cd680.zip
llvm-0b2403197ff026627cf27df63ce83cd53d1cd680.tar.gz
llvm-0b2403197ff026627cf27df63ce83cd53d1cd680.tar.bz2
[LoopVectorize] In LoopVectorize.cpp start using getSymbolicMaxBackedgeTakenCount (#108833)
LoopVectorizationLegality currently only treats a loop as legal to vectorise if PredicatedScalarEvolution::getBackedgeTakenCount returns a valid SCEV, or more precisely that the loop must have an exact backedge taken count. Therefore, in LoopVectorize.cpp we can safely replace all calls to getBackedgeTakenCount with calls to getSymbolicMaxBackedgeTakenCount, since the result is the same. This also helps prepare the loop vectoriser for PR #88385.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions