[PATCH] D145042: [NFC][SCEV] Changed the return type of some functions from ScalarEvolution
Dmitry Bakunevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 1 01:10:13 PST 2023
dbakunevich created this revision.
dbakunevich added a reviewer: mkazantsev.
Herald added subscribers: StephenFan, bmahjour, javed.absar, zzheng, hiraditya.
Herald added a project: All.
dbakunevich requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The getConstant function and related functions have their return type changed from SCEV to SCEVConstant. Within the semantics of the getConstant function, it is correct to return the SCEVConstant type. The same applies to the getZero, getOne, getMinusOne and getPowerOfTwo functions. For some files, I had to connect a ScalarEvolutionExpressions file. This is necessary for implicit casting from SCEVConstant to SCEV.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145042
Files:
llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/StackSafetyAnalysis.cpp
llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
llvm/unittests/Analysis/DDGTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145042.501413.patch
Type: text/x-patch
Size: 5630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/db468040/attachment.bin>
More information about the llvm-commits
mailing list