diff options
author | Kazu Hirata <kazu@google.com> | 2021-09-30 08:51:21 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-09-30 08:51:21 -0700 |
commit | f631173d80cace522c89c566f13cc447741745e4 (patch) | |
tree | a261f7f34e63fc58a4263da3e568a09586668bc2 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | cf362ff4cab3a3bef5f32f0445526823998eb72f (diff) | |
download | llvm-f631173d80cace522c89c566f13cc447741745e4.zip llvm-f631173d80cace522c89c566f13cc447741745e4.tar.gz llvm-f631173d80cace522c89c566f13cc447741745e4.tar.bz2 |
[llvm] 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/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 dc772e8..9ab6d48 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2107,7 +2107,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, bool &ModifiedDT) { // idea unsigned MinSize, PrefAlign; if (TLI->shouldAlignPointerArgs(CI, MinSize, PrefAlign)) { - for (auto &Arg : CI->arg_operands()) { + for (auto &Arg : CI->args()) { // We want to align both objects whose address is used directly and // objects whose address is used in casts and GEPs, though it only makes // sense for GEPs if the offset is a multiple of the desired alignment and @@ -2158,7 +2158,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, bool &ModifiedDT) { // into their uses. TODO: generalize this to work over profiling data if (CI->hasFnAttr(Attribute::Cold) && !OptSize && !llvm::shouldOptimizeForSize(BB, PSI, BFI.get())) - for (auto &Arg : CI->arg_operands()) { + for (auto &Arg : CI->args()) { if (!Arg->getType()->isPointerTy()) continue; unsigned AS = Arg->getType()->getPointerAddressSpace(); |