llvm-project/llvm/unittests/Transforms
Roman Lebedev 78b8ce40ef
Reland [SCEV] Improve modelling for (null) pointer constants
This reverts commit 329aeb5db4,
and relands commit 61f006ac65.

This is a continuation of D89456.

As it was suggested there, now that SCEV models `PtrToInt`,
we can try to improve SCEV's pointer handling.
In particular, i believe, i will need this in the future
to further fix `SCEVAddExpr`operation type handling.

This removes special handling of `ConstantPointerNull`
from `ScalarEvolution::createSCEV()`, and add constant folding
into `ScalarEvolution::getPtrToIntExpr()`.
This way, `null` constants stay as such in SCEV's,
but gracefully become zero integers when asked.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D98147
2021-03-13 16:05:34 +03:00
..
IPO Fix MSVC "'type cast': conversion from 'unsigned int' to 'const llvm::CallBase *' of greater size" warning. NFCI. 2021-03-11 10:40:46 +00:00
Scalar [LoopNest] Extend `LPMUpdater` and adaptor to handle loop-nest passes 2020-12-22 08:47:38 +08:00
Utils Reland [SCEV] Improve modelling for (null) pointer constants 2021-03-13 16:05:34 +03:00
Vectorize [VPlan] Support to widen select intructions in VPlan native path 2021-03-10 20:59:53 +00:00
CMakeLists.txt