diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-29 15:13:32 -0400 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-07-16 13:50:49 -0400 |
commit | 023883a8346076b2869516c7c0c2fd9e1f139acb (patch) | |
tree | 10fa0f9ef402c433ae013d44e7fbac2298495909 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 0347039a6e7daa774d016e0a4e0f2568c7913351 (diff) | |
download | llvm-023883a8346076b2869516c7c0c2fd9e1f139acb.zip llvm-023883a8346076b2869516c7c0c2fd9e1f139acb.tar.gz llvm-023883a8346076b2869516c7c0c2fd9e1f139acb.tar.bz2 |
IR: Rename Argument::hasPassPointeeByValueAttr to prepare for byref
When the byref attribute is added, there will need to be two similar
functions for the existing cases which have an associate value copy,
and byref which does not. Most, but not all of the existing uses will
use the existing version.
The associated size function added by D82679 also needs to
contextually differ, and will help eliminate a few places still
relying on pointee element types.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index b0b7ca4..5c9cb12 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1245,7 +1245,7 @@ static void AddAlignmentAssumptions(CallBase &CB, InlineFunctionInfo &IFI) { Function *CalledFunc = CB.getCalledFunction(); for (Argument &Arg : CalledFunc->args()) { unsigned Align = Arg.getType()->isPointerTy() ? Arg.getParamAlignment() : 0; - if (Align && !Arg.hasPassPointeeByValueAttr() && !Arg.hasNUses(0)) { + if (Align && !Arg.hasPassPointeeByValueCopyAttr() && !Arg.hasNUses(0)) { if (!DTCalculated) { DT.recalculate(*CB.getCaller()); DTCalculated = true; |