diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-04-27 20:15:59 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-04-27 22:17:03 -0700 |
commit | a58b62b4a2b96c31b49338b262b609db746449e8 (patch) | |
tree | b8549e279ee3b6dd34c461038f3e9f0e19fc7f33 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 756ba3548cbeef6c18866914fa935ade8b3edf1c (diff) | |
download | llvm-a58b62b4a2b96c31b49338b262b609db746449e8.zip llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.gz llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.bz2 |
[IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand().
This method has been commented as deprecated for a while. Remove
it and replace all uses with the equivalent getCalledOperand().
I also made a few cleanups in here. For example, to removes use
of getElementType on a pointer when we could just use getFunctionType
from the call.
Differential Revision: https://reviews.llvm.org/D78882
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 3c95b2e..d37bac6 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1889,7 +1889,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, bool &ModifiedDT) { // Lower inline assembly if we can. // If we found an inline asm expession, and if the target knows how to // lower it to normal LLVM code, do so now. - if (isa<InlineAsm>(CI->getCalledValue())) { + if (CI->isInlineAsm()) { if (TLI->ExpandInlineAsm(CI)) { // Avoid invalidating the iterator. CurInstIterator = BB->begin(); @@ -4636,7 +4636,7 @@ static bool FindAllMemoryUses( continue; } - InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue()); + InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledOperand()); if (!IA) return true; // If this is a memory operand, we're cool, otherwise bail out. |