[SCEVExpander] generateOverflowCheck(): explicitly PtrToInt the Start
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Apr 2021 13:48:02 +0000 (16:48 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 19 Apr 2021 15:38:38 +0000 (18:38 +0300)
commit73f60e398890941521d55868705c0b539ed80f94
treeea6b312b7572f1cef856ec4284d61e1d4f65e4ce
parent016c5771b2cbf198b9bfe469634e5f301cc06083
[SCEVExpander] generateOverflowCheck(): explicitly PtrToInt the Start

Currently, InsertNoopCastOfTo() would implicitly insert that cast,
but now that we have SCEVPtrToIntExpr, i'm hoping we could stop
InsertNoopCastOfTo() from doing that. But first all users must be fixed.
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
llvm/test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll
llvm/test/Transforms/LoopDistribute/scev-inserted-runtime-check.ll