diff options
author | Florian Hahn <flo@fhahn.com> | 2025-03-17 18:41:34 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-03-17 21:26:51 +0000 |
commit | 166937b49dac0919fae362c0deecb723b03be764 (patch) | |
tree | 753f8ed8eb93c4efab3cc1a2cdcc12f097332244 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 887cf1f8cea240cd50fb80bc9487b22f67d74263 (diff) | |
download | llvm-166937b49dac0919fae362c0deecb723b03be764.zip llvm-166937b49dac0919fae362c0deecb723b03be764.tar.gz llvm-166937b49dac0919fae362c0deecb723b03be764.tar.bz2 |
[LV] Cleanup after expanding SCEV predicate to constant.
In some cases, SCEV isn't able to prove that no wrap checks are needed,
while constant folding in SCEVExpander can. In those cases, we may leave
around IR for computing the trip count, which is unused at this point
but may be re-used later, triggering an assertion when trying to clean
up SCEVExp after vectorization.
Directly run the cleaner after expanding to a constant predicate to
prevent any generated code from being re-used.
Fixes https://github.com/llvm/llvm-project/issues/131281.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions