AMDGPU: Inline constant when materalizing FI with add on gfx9
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 12 Sep 2019 23:46:46 +0000 (23:46 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 12 Sep 2019 23:46:46 +0000 (23:46 +0000)
commit8382ce5f1b099e4cf8b1e15fe9efb6963740b6cc
treee1fd3f80d2f8fc1ace55debac6a7b14b9cb6894d
parent4a8916cf1a45a9ee5a95cc011f60ce10a02ff196
AMDGPU: Inline constant when materalizing FI with add on gfx9

This was relying on the SGPR usable for the carry out clobber to also
be used for the input. There was no carry out on gfx9. With no carry
out clobber to worry about, so the literal can just be directly used
with a VOP2 add.

llvm-svn: 371791
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/frame-index-elimination.ll
llvm/test/CodeGen/AMDGPU/pei-scavenge-sgpr-gfx9.mir [new file with mode: 0644]