aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorRamkumar Ramachandra <ramkumar.ramachandra@codasip.com>2025-01-27 14:21:14 +0000
committerGitHub <noreply@github.com>2025-01-27 14:21:14 +0000
commit3a4376b8f90686f754ee51b296a064ab03c12895 (patch)
tree896f2e9973e72a438b1398ce52fec2f5c5f4fbaa /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent3684ec425904424fc4dc80c8661f82bc676d7197 (diff)
downloadllvm-3a4376b8f90686f754ee51b296a064ab03c12895.zip
llvm-3a4376b8f90686f754ee51b296a064ab03c12895.tar.gz
llvm-3a4376b8f90686f754ee51b296a064ab03c12895.tar.bz2
LAA: handle 0 return from getPtrStride correctly (#124539)
getPtrStride returns 0 when the PtrScev is loop-invariant, and this is not an erroneous value: it returns std::nullopt to communicate that it was not able to find a valid pointer stride. In analyzeLoop, we call getPtrStride with a value_or(0) conflating the zero return value with std::nullopt. Fix this, handling loop-invariant loads correctly.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions