search for: clonedloop

Displaying 1 result from an estimated 1 matches for "clonedloop".

2019 Oct 30
2
How to make ScalarEvolution recompute SCEV values?
...for (auto PredIt = pred_begin(PreHeader), E = pred_end(PreHeader); PredIt != E; PredIt++) AllPredecessors.insert(*PredIt); BasicBlock *ExitBlock = L->getExitBlock(); auto DT = DominatorTree(*F); SmallVector<BasicBlock *, 8> Blocks; const auto ClonedLoop = cloneLoopWithPreheader(PreHeader, PreHeader, L, VMap, NameSuffix, LI, &DT, Blocks); VMap[ExitBlock] = PreHeader; // chain: cloned loop -> original loop remapInstructionsInBlocks(Blocks, VMap); // remap original predecessors to the cloned loop for (BasicBlock *PredBB :...