When widening an IndVar that has LCSSA Phi users outside
the loop, we can safely widen it as usual and then truncate
the result outside the loop without hurting the performance.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | ||
---|---|---|
1646 | Just in case if this code changes later. |
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | ||
---|---|---|
1654 | must be Builder.SetInsertPoint(&*User->getParent()->getFirstInsertionPt()); |
I doubt that someone can change the content of this set after creation :)