[PATCH] D104634: [SCEV] Generalize MatchBinaryAddToConst to support non-add expressions.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 21 04:04:54 PDT 2021
fhahn created this revision.
fhahn added reviewers: efriedma, nikic, reames, mkazantsev.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.
This patch generalizes MatchBinaryAddToConst to support matching
(A + C1), (A + C2), instead of just matching (A + C1), A.
The existing cases can be handled by treating non-add expressions A as
A + 0.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104634
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Transforms/SLPVectorizer/AArch64/memory-runtime-checks.ll
llvm/test/Transforms/SLPVectorizer/X86/memory-runtime-checks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104634.353331.patch
Type: text/x-patch
Size: 20639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/d4fc026e/attachment.bin>
More information about the llvm-commits
mailing list