[PATCH] D91593: [IndVars] LCSSA Phi users should not prevent widening
Yevgeny Rouban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 19:45:47 PST 2020
yrouban added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyIndVar.cpp:1653
+ WidePN->addIncoming(WideBO, LoopExitingBlock);
+ Builder.SetInsertPoint(User->getParent()->getFirstNonPHI());
+ auto *TruncPN = Builder.CreateTrunc(WidePN, User->getType());
----------------
must be
Builder.SetInsertPoint(&*User->getParent()->getFirstInsertionPt());
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91593/new/
https://reviews.llvm.org/D91593
More information about the llvm-commits
mailing list