1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/unittests
Florian Hahn 03e16aab4f [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
..
ADT
Analysis
AsmParser
BinaryFormat
Bitcode
Bitstream
CodeGen
DebugInfo
Demangle
ExecutionEngine
FileCheck
Frontend
FuzzMutate
InterfaceStub
IR
LineEditor
Linker
MC
MI
Object
ObjectYAML
Option
Passes
ProfileData
Remarks
Support
TableGen
Target
TextAPI
tools
Transforms
XRay
CMakeLists.txt
unittest.cfg.in