aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMel Chen <mel.chen@sifive.com>2025-01-13 20:58:38 +0800
committerGitHub <noreply@github.com>2025-01-13 20:58:38 +0800
commit3397950f2d21426c7520d114a12588128906a897 (patch)
treeb171473035ace78c608ea335c229481f0b96fd5d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent41a94de75caacb979070ec7a010dfe3c4e9f116f (diff)
downloadllvm-3397950f2d21426c7520d114a12588128906a897.zip
llvm-3397950f2d21426c7520d114a12588128906a897.tar.gz
llvm-3397950f2d21426c7520d114a12588128906a897.tar.bz2
[LV] Fix FindLastIV reduction for epilogue vectorization. (#120395)
Following 0e528ac404e13ed2d952a2d83aaf8383293c851e, this patch adjusts the resume value of VPReductionPHIRecipe for FindLastIV reductions. Replacing the resume value with: ResumeValue = ResumeValue == StartValue ? SentinelValue : ResumeValue; This addressed the correctness issue when the start value might not be less than the minimum value of a monotonically increasing induction variable. Thanks Florian Hahn for the help. --------- Co-authored-by: Florian Hahn <flo@fhahn.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions