diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-25 18:14:20 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-10-25 18:46:50 +0100 |
commit | 22a5cde541c3306e53279fd02c6d60ae6178ef10 (patch) | |
tree | 2704e0e5c7e70691b1785bf62e6bb3d53d1e60f1 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 0dda6333175c1749f12be660456ecedade3bcf21 (diff) | |
download | llvm-22a5cde541c3306e53279fd02c6d60ae6178ef10.zip llvm-22a5cde541c3306e53279fd02c6d60ae6178ef10.tar.gz llvm-22a5cde541c3306e53279fd02c6d60ae6178ef10.tar.bz2 |
[SCEV] Separate out constant folding in mul expr creation
Separate out the code handling constant folding into a separate
block, that is independent of other folds that need a constant
first operand. Also make some minor adjustments to make the
constant folding look nearly identical to the same code in
getAddExpr().
The only reason this change is not strictly NFC is that the
C1*(C2+V) fold is moved below the constant folding, which means
that it now also applies to C1*C2*(C3+V), as it should.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions