[PATCH] D33850: Inlining: Don't re-map simplified cloned instructions.
Kyle Butt via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 10:52:10 PDT 2017
iteratee added inline comments.
================
Comment at: lib/Transforms/Utils/CloneFunction.cpp:457
SmallVector<const PHINode*, 16> PHIToResolve;
- for (const BasicBlock &BI : *OldFunc) {
+ for (const BasicBlock &BI : make_range(OldFunc->begin(), OldFunc->end())) {
Value *V = VMap.lookup(&BI);
----------------
eraman wrote:
> Unrelated change?
Not unrelated. If you're inlining a function into itself, end() changes. I can make it a separate patch if you'd like, but I put it in this patch on purpose.
Repository:
rL LLVM
https://reviews.llvm.org/D33850
More information about the llvm-commits
mailing list