[PATCH] D29569: Fix the bug of samplepgo indirect call promption when type casting of the return value is needed.
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 09:40:45 PST 2017
davidxl added inline comments.
================
Comment at: lib/Transforms/Instrumentation/IndirectCallPromotion.cpp:562
+
+ while (NewInst && NewInst->getParent() == DirectCallBB)
+ if (isa<CallInst>(NewInst) || isa<InvokeInst>(NewInst))
----------------
stripPointerCasts call? This probably should be called at the caller of promoteIndirectcall
https://reviews.llvm.org/D29569
More information about the llvm-commits
mailing list