diff options
author | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2021-03-05 13:29:14 +0530 |
---|---|---|
committer | cdevadas <cdevadas@amd.com> | 2021-03-09 23:22:49 +0530 |
commit | 24c0ad714393d6c74e94539f995a0f8d4349bb8e (patch) | |
tree | 7674094dd91b555a5d6c6d18d2c4b2acbc5d9a3a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 55ae279ba7a5905f39ce3ae79eac7834a4a134cc (diff) | |
download | llvm-24c0ad714393d6c74e94539f995a0f8d4349bb8e.zip llvm-24c0ad714393d6c74e94539f995a0f8d4349bb8e.tar.gz llvm-24c0ad714393d6c74e94539f995a0f8d4349bb8e.tar.bz2 |
[AMDGPU] Fix the dead frame indices during custom spill lowering.
AMDGPU target tries to handle the SGPR and VGPR spills in a
custom pass before the actual frame lowering pass. Once they
are handled and the respective frames are eliminated in the
custom pass, certain uses of them still remain. For instance,
the DBG_VALUE instructions inserted by the allocator alongside
the spill instruction will use the corresponding frame index.
They become dead later during PEI and causes a crash while trying to
replace the frame indices. We should possibly avoid this custom pass.
For now, replacing such dead references with null register value.
Reviewed By: arsenm, scott.linder
Differential Revision: https://reviews.llvm.org/D98038
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions