[amdgpu] Add the late codegen preparation pass.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 22 May 2020 19:52:26 +0000 (15:52 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 27 Oct 2020 18:07:59 +0000 (14:07 -0400)
commit46c3d5cb05d63ed7ee1935aa3fd0d96307a9dcac
treeb159b681c064a716ba3ace17eb46c53b9c2219ea
parent64d3ed304fe7aa7c4d753da70beaff9f23c4896b
[amdgpu] Add the late codegen preparation pass.

Summary:
- Teach that pass to widen naturally aligned but not DWORD aligned
  sub-DWORD loads.

Reviewers: rampitec, arsenm

Subscribers:

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80364
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp [new file with mode: 0644]
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.dispatch.ptr.ll
llvm/test/CodeGen/AMDGPU/vectorize-loads.ll