forked from OSchip/llvm-project
BlockGenerators: Remove unnecessary const_cast
llvm-svn: 256227
This commit is contained in:
parent
ff1d084aa2
commit
fcabb155c1
|
@ -64,7 +64,7 @@ Value *BlockGenerator::trySynthesizeNewValue(ScopStmt &Stmt, Value *Old,
|
|||
LoopToScevMapT <S,
|
||||
Loop *L) const {
|
||||
if (SE.isSCEVable(Old->getType()))
|
||||
if (const SCEV *Scev = SE.getSCEVAtScope(const_cast<Value *>(Old), L)) {
|
||||
if (const SCEV *Scev = SE.getSCEVAtScope(Old, L)) {
|
||||
if (!isa<SCEVCouldNotCompute>(Scev)) {
|
||||
const SCEV *NewScev = apply(Scev, LTS, SE);
|
||||
ValueMapT VTV;
|
||||
|
|
Loading…
Reference in New Issue