[all-commits] [llvm/llvm-project] 1ff313: [SCEV] Always constant fold mul expression operands
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sun Oct 25 10:54:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1ff313f0989009f8a080418e93fe510ec66e8999
https://github.com/llvm/llvm-project/commit/1ff313f0989009f8a080418e93fe510ec66e8999
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2020-10-25 (Sun, 25 Oct 2020)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
M llvm/test/Analysis/ScalarEvolution/limit-depth.ll
Log Message:
-----------
[SCEV] Always constant fold mul expression operands
Establish parity with the handling of add expressions, by always
constant folding mul expression operands before checking the depth
limit (this is a non-recursive simplification). The code was already
unconditionally constant folding the case where all operands were
constants, but was not folding multiple constant operands together
if there were also non-constant operands.
This requires picking out a different demonstration for depth-based
folding differences in the limit-depth.ll test.
More information about the All-commits
mailing list