SuccessChanges

Summary

  1. [SampleFDO][NFC] Refactor: make SampleProfileLoaderBaseImpl a template class (details)
  2. [AMDGPU] require s-memtime-inst for __builtin_amdgcn_s_memtime (details)
  3. [X86] Remove custom lowering of vXi1 ADD/SUB now that they are canonicalized to XOR in getNode. (details)
Commit 6103b6ad69fed0fe300f518b5115837cf6b74148 by xur
[SampleFDO][NFC] Refactor: make SampleProfileLoaderBaseImpl a template class

This patch makes SampleProfileLoaderBaseImpl a template class so it
can be used in CodeGen transformation.

Noticeable changes:
* use one template parameter and use IRTraits to get other used
   types an type specific functions.
* remove the temporary "inline" keywords in previous refactor
   patch.
* change the template function findEquivalencesFor to a regular
   function. This function has a single caller with type of
   PostDominatorTree. It's simpler to use the type directly
   because MachinePostDominatorTree is not a derived type of
   template DominatorTreeBase.

Differential Revision: https://reviews.llvm.org/D96981
The file was modifiedllvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h (diff)
The file was modifiedllvm/lib/Transforms/IPO/SampleProfile.cpp (diff)
Commit 502b3bfc6a713e5b6640faf48e72de08d7cb0aba by Stanislav.Mekhanoshin
[AMDGPU] require s-memtime-inst for __builtin_amdgcn_s_memtime

Differential Revision: https://reviews.llvm.org/D97420
The file was modifiedclang/include/clang/Basic/BuiltinsAMDGPU.def (diff)
The file was modifiedclang/test/CodeGenOpenCL/builtins-amdgcn-vi.cl (diff)
The file was modifiedclang/test/CodeGenOpenCL/builtins-amdgcn.cl (diff)
The file was addedclang/test/SemaOpenCL/builtins-amdgcn-error-gfx1030.cl
The file was modifiedclang/test/CodeGenOpenCL/builtins-amdgcn-ci.cl (diff)
The file was modifiedclang/test/CodeGenOpenCL/builtins-amdgcn-gfx10.cl (diff)
The file was modifiedclang/test/CodeGenOpenCL/builtins-amdgcn-gfx9.cl (diff)
Commit ceaedfb5fc3a94adf9e67616d65414ddfee71e24 by craig.topper
[X86] Remove custom lowering of vXi1 ADD/SUB now that they are canonicalized to XOR in getNode.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D97478
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp (diff)