SuccessChanges

Summary

  1. [Attributor][Fix] Manifest nocapture only in CSArgument or Argument (details)
  2. [Attributor] Implement "noalias" callsite argument deduction (details)
  3. [llvm-objcopy] Simplify --prefix-alloc-sections (details)
  4. [TLI][AMDGPU] AMDPAL does not have library functions (details)
  5. [LTO] Avoid calling GlobalValue::getGUID (MD5) twice (details)
Commit 37367646578735c1bd453f959dd7696e2a41d621 by uenoku.tokotoko
[Attributor][Fix] Manifest nocapture only in CSArgument or Argument
Summary: We can query to Attributor whether the value is captured in the
scope or not on the following way:
```
   const auto & NoCapAA = A.getAAFor<AANoCapture>(*this,
IRPosition::value(V));
``` And if V is CallSiteReturned then `getDeducedAttribute` will add
`nocatpure` to the callsite returned value. It is not valid. This patch
checks the position is an argument or call site argument.
This is tested in D67286.
Reviewers: jdoerfert, sstefan1
Reviewed By: jdoerfert
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67342
llvm-svn: 371589
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
Commit 1d68ed8c24e34231ba495c6ea2823c3eb1d90e85 by uenoku.tokotoko
[Attributor] Implement "noalias" callsite argument deduction
Summary: Now, `nocapture` is deduced in Attributor therefore, this patch
introduces deduction for `noalias` callsite argument using `nocapture`.
Reviewers: jdoerfert, sstefan1
Reviewed By: jdoerfert
Subscribers: lebedev.ri, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67286
llvm-svn: 371590
The file was modifiedllvm/test/Transforms/FunctionAttrs/noalias_returned.ll
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
Commit 27f2b81b6b72e10b7534abfcbf3249f99fab3bd4 by maskray
[llvm-objcopy] Simplify --prefix-alloc-sections
Handle --prefix-alloc-sections after --rename-sections so that
--prefix-alloc-sections code does not have to check if renaming has been
performed.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D66931
llvm-svn: 371591
The file was modifiedllvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
Commit c26b3940c3207597b98bbe5331b886155b4441a9 by tpr.llvm
[TLI][AMDGPU] AMDPAL does not have library functions
Configure TLI to say that r600/amdgpu does not have any library
functions, such that InstCombine does not do anything like turn sin/cos
into the library function @tan with sufficient fast math flags.
Differential Revision: https://reviews.llvm.org/D67406
Change-Id: I02f907d3e64832117ea9800e9f9285282856e5df llvm-svn: 371592
The file was modifiedllvm/lib/Analysis/TargetLibraryInfo.cpp
The file was addedllvm/test/Transforms/InstCombine/AMDGPU/tan.ll
Commit 6b9df910d04fae62dacc22c1c84f66c0f126cde0 by maskray
[LTO] Avoid calling GlobalValue::getGUID (MD5) twice
llvm-svn: 371593
The file was modifiedllvm/lib/LTO/LTO.cpp