[PATCH] D77891: [CallSite Removal][CodeGenPrepare] permit optimizations for CallBrInst
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 13:26:46 PDT 2020
craig.topper added inline comments.
================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:1892
// lower it to normal LLVM code, do so now.
- if (isa<InlineAsm>(CI->getCalledValue())) {
- if (TLI->ExpandInlineAsm(CI)) {
- // Avoid invalidating the iterator.
- CurInstIterator = BB->begin();
- // Avoid processing instructions out of order, which could cause
- // reuse before a value is defined.
- SunkAddrs.clear();
- return true;
+ if (CallInst *CI = dyn_cast<CallInst>(CB))
+ if (isa<InlineAsm>(CI->getCalledValue())) {
----------------
Why is this CallInst?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77891/new/
https://reviews.llvm.org/D77891
More information about the llvm-commits
mailing list