[all-commits] [llvm/llvm-project] 1344b6: [SCEV] Fix incorrect NUW inference (#70521)
Daniil Suchkov via All-commits
all-commits at lists.llvm.org
Tue Oct 31 11:44:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1344b65c90507e2368a3d0678df9f179e8890665
https://github.com/llvm/llvm-project/commit/1344b65c90507e2368a3d0678df9f179e8890665
Author: Daniil Suchkov <suc-daniil at yandex.ru>
Date: 2023-10-31 (Tue, 31 Oct 2023)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
M llvm/test/Transforms/LoopStrengthReduce/scev-incorrect-nuw-inference.ll
Log Message:
-----------
[SCEV] Fix incorrect NUW inference (#70521)
This patch fixes a miscompile in LSR caused by incorrect inference of
NUW flag for AddRec: we shouldn't infer no-wrap flags based on a
comparison which doesn't fully control the loop exit.
More information about the All-commits
mailing list