diff options
author | Florian Hahn <flo@fhahn.com> | 2025-09-09 10:41:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-09 10:41:34 +0100 |
commit | a1afe66f328d4f77c7b5a9ad7b55b8349b1c7017 (patch) | |
tree | 2d51890c56dcc008216849654b35b6a6562af018 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | e741b719281e355d5098937d7a78f9078d361d61 (diff) | |
download | llvm-a1afe66f328d4f77c7b5a9ad7b55b8349b1c7017.zip llvm-a1afe66f328d4f77c7b5a9ad7b55b8349b1c7017.tar.gz llvm-a1afe66f328d4f77c7b5a9ad7b55b8349b1c7017.tar.bz2 |
[SCEV] Generalize (C * A /u C) -> A fold to (C1 * A /u C2) -> C1/C2 * A. (#157159)
Generalize fold added in 74ec38fad0a1289
(https://github.com/llvm/llvm-project/pull/156730) to support multiplying and
dividing by different constants, given they are both powers-of-2 and C1 is a
multiple of C2, checked via logBase2.
https://alive2.llvm.org/ce/z/eqJ2xj
PR: https://github.com/llvm/llvm-project/pull/157159
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions