aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2023-08-29 18:52:13 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2023-08-29 18:52:24 +0100
commitd037445f3a2c6dc1842b5bfc1d5d81988c2f223d (patch)
treeecc1eba9953b4bbc94a3762e09810b2b4b7c5eb4 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parentcd8bba941f06e17cfdab8cb2b31e9171f019fe29 (diff)
downloadllvm-d037445f3a2c6dc1842b5bfc1d5d81988c2f223d.zip
llvm-d037445f3a2c6dc1842b5bfc1d5d81988c2f223d.tar.gz
llvm-d037445f3a2c6dc1842b5bfc1d5d81988c2f223d.tar.bz2
[DAG] visitSHL - use FoldConstantArithmetic to fold constants in (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) fold
Matches what we do in the (shl (mul x, c1), c2) -> (mul x, c1 << c2) fold as well as inside visitShiftByConstant
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions