Change the interface to SCEVExpander::InsertCastOfTo to take a cast opcode
authorReid Spencer <rspencer@reidspencer.com>
Wed, 13 Dec 2006 08:06:42 +0000 (08:06 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 13 Dec 2006 08:06:42 +0000 (08:06 +0000)
commit3ba68b9eef2851dae8a9d1b18928c6fa2e3c5f87
tree8b8521028d0a0ea0de252022ee0350c3c843ea1d
parentdccd9fe161135bffd3fddf0091f8e8efd4fd259b
Change the interface to SCEVExpander::InsertCastOfTo to take a cast opcode
so the decision of which opcode to use is pushed upward to the caller.
Adjust the callers to pass the expected opcode.

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