llvm-project/llvm/unittests/Transforms
Florian Hahn 1d8f2e5292 [SCEVExpander] Support expanding nonintegral pointers with constant base.
Currently SCEVExpander creates inttoptr for non-integral pointers if the
base is a null constant for example. This results in invalid IR.

This patch changes InsertNoopCastOfTo to emit a GEP & bitcast to convert
to a non-integral pointer. First, a GEP of i8* null is generated and the
integral value is used as index. The GEP is then bitcasted to the target
type.

This was exposed by D71539.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D87827
2020-09-19 17:19:53 +01:00
..
IPO Attributor.h - remove unnecessary includes. NFCI. 2020-07-30 15:26:41 +01:00
Scalar [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults 2020-09-15 16:16:24 -07:00
Utils [SCEVExpander] Support expanding nonintegral pointers with constant base. 2020-09-19 17:19:53 +01:00
Vectorize LoopAnalysisManager.h - reduce includes to forward declarations. NFC. 2020-06-06 14:06:46 +01:00
CMakeLists.txt