forked from OSchip/llvm-project
parent
279784ffc4
commit
59a6550425
|
@ -135,9 +135,8 @@ void RuntimePointerChecking::insert(Loop *Lp, Value *Ptr, bool WritePtr,
|
|||
const SCEV *ScStart;
|
||||
const SCEV *ScEnd;
|
||||
|
||||
if (SE->isLoopInvariant(Sc, Lp)) {
|
||||
if (SE->isLoopInvariant(Sc, Lp))
|
||||
ScStart = ScEnd = Sc;
|
||||
}
|
||||
else {
|
||||
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(Sc);
|
||||
assert(AR && "Invalid addrec expression");
|
||||
|
|
Loading…
Reference in New Issue