Use SCEVExpander::InsertCastOfTo instead of calling new IntToPtrInst
authorDan Gohman <gohman@apple.com>
Tue, 31 Jul 2007 17:22:27 +0000 (17:22 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 31 Jul 2007 17:22:27 +0000 (17:22 +0000)
commita9cfed77b6bc4930ffb07cbd2877cef5c44d93b2
tree02ee38ce56df594525bc4342dfd54068c11c6746
parent8d246f09cb46fe38aa71d2a4edcd84f30c4bf80e
Use SCEVExpander::InsertCastOfTo instead of calling new IntToPtrInst
directly, because the insert point used by the SCEVExpander may vary
from what LSR originally computes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40641 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp