aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-25 18:46:27 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-10-25 18:50:06 +0100
commit1ff313f0989009f8a080418e93fe510ec66e8999 (patch)
tree468ac83c0736c093cfa1928727e099eef3502760 /clang/lib/CodeGen/CodeGenFunction.cpp
parent22a5cde541c3306e53279fd02c6d60ae6178ef10 (diff)
downloadllvm-1ff313f0989009f8a080418e93fe510ec66e8999.zip
llvm-1ff313f0989009f8a080418e93fe510ec66e8999.tar.gz
llvm-1ff313f0989009f8a080418e93fe510ec66e8999.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions