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
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | ||
---|---|---|
1645 | Just in case if this code changes later. |
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | ||
---|---|---|
1653 | must be Builder.SetInsertPoint(&*User->getParent()->getFirstInsertionPt()); |
I doubt that someone can change the content of this set after creation :)