forked from OSchip/llvm-project
1d8f2e5292
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 |
||
---|---|---|
.. | ||
ASanStackFrameLayoutTest.cpp | ||
BasicBlockUtilsTest.cpp | ||
CMakeLists.txt | ||
CallPromotionUtilsTest.cpp | ||
CloningTest.cpp | ||
CodeExtractorTest.cpp | ||
CodeMoverUtilsTest.cpp | ||
FunctionComparatorTest.cpp | ||
IntegerDivisionTest.cpp | ||
LocalTest.cpp | ||
LoopRotationUtilsTest.cpp | ||
LoopUtilsTest.cpp | ||
SSAUpdaterBulkTest.cpp | ||
ScalarEvolutionExpanderTest.cpp | ||
SizeOptsTest.cpp | ||
UnrollLoopTest.cpp | ||
VFABIUtils.cpp | ||
ValueMapperTest.cpp |