[AMDGPU] Fix insert of SIPreAllocateWWMRegs in FastRegAlloc
authorCarl Ritson <carl.ritson@amd.com>
Wed, 28 Oct 2020 02:42:24 +0000 (11:42 +0900)
committerCarl Ritson <carl.ritson@amd.com>
Wed, 28 Oct 2020 03:15:15 +0000 (12:15 +0900)
commit057934a6d7faa5b91f016a5245c16adbde4d42ff
tree2ebacf848123054f84d871700d3388dd0b4fc5e6
parentd13daa4018faf6a3427d80ed17e10f5913fee1b5
[AMDGPU] Fix insert of SIPreAllocateWWMRegs in FastRegAlloc

SIPreAllocateWWMRegs was being inserted after RegisterCoalescer
but this pass does not exist during FastAlloc so pre-allocation
pass was never being run.
Insert pre-allocation after TwoAddressInstructionPass instead.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D90236
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/test/CodeGen/AMDGPU/wwm-reserved.ll