SuccessChanges

Summary

  1. [AMDGPU] Fix assertion due to initializer list (details)
  2. AMDGPU: Don't re-get the subtarget (details)
  3. AMDGPU: Add baseline tests for flat offset splitting (details)
Commit e6125fc0ec3418d6529b52f15853a06e000d478d by Yaxun.Liu
[AMDGPU] Fix assertion due to initializer list
Sometimes a global var is replaced by a different llvm value. clang use
GetAddrOfGlobalVar to get the original llvm global variable. For most
targets, GetAddrOfGlobalVar returns either the llvm global variable or a
bitcast of the llvm global variable. However, for AMDGPU target,
GetAddrOfGlobalVar returns the addrspace cast or addrspace cast plus
bitcast of the llvm global variable. To get the llvm global variable,
these casts need to be stripped, otherwise there is assertion.
This patch fixes that.
Differential Revision: https://reviews.llvm.org/D69129
llvm-svn: 375362
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/test/CodeGenCXX/cxx11-extern-constexpr.cpp
Commit fc205f1d118a63100cce539b271cb147fe84e093 by Matthew.Arsenault
AMDGPU: Don't re-get the subtarget
It's already available in the class.
llvm-svn: 375363
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Commit bba8fd71324945980ae0baf09919fe3a3bd6e3ab by Matthew.Arsenault
AMDGPU: Add baseline tests for flat offset splitting
llvm-svn: 375364
The file was addedllvm/test/CodeGen/AMDGPU/offset-split-global.ll
The file was addedllvm/test/CodeGen/AMDGPU/offset-split-flat.ll