diff options
author | Kazu Hirata <kazu@google.com> | 2021-10-03 08:22:19 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-10-03 08:22:20 -0700 |
commit | d34cd75d890ae18beae8b40079522935b5fcf45a (patch) | |
tree | 0a90efa4a1a6d84948d4e676c27b75d65c65b89e /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 9afec8890743bd529d179ee308da5ba91e0aa999 (diff) | |
download | llvm-d34cd75d890ae18beae8b40079522935b5fcf45a.zip llvm-d34cd75d890ae18beae8b40079522935b5fcf45a.tar.gz llvm-d34cd75d890ae18beae8b40079522935b5fcf45a.tar.bz2 |
[Analysis, CodeGen] Migrate from arg_operands to args (NFC)
Note that arg_operands is considered a legacy name. See
llvm/include/llvm/IR/InstrTypes.h for details.
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 2543670..3926776 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -3171,7 +3171,7 @@ bool llvm::isMathLibCallNoop(const CallBase *Call, if (!TLI || !TLI->getLibFunc(*F, Func)) return false; - if (Call->getNumArgOperands() == 1) { + if (Call->arg_size() == 1) { if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { const APFloat &Op = OpC->getValueAPF(); switch (Func) { @@ -3260,7 +3260,7 @@ bool llvm::isMathLibCallNoop(const CallBase *Call, } } - if (Call->getNumArgOperands() == 2) { + if (Call->arg_size() == 2) { ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0)); ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); if (Op0C && Op1C) { |