InlineSpiller: Don't fold spills into undef reads
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 15 Jun 2022 21:04:05 +0000 (17:04 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 23 Jun 2022 00:47:55 +0000 (20:47 -0400)
commit370aa2f88ffabae5831bbc350c03d7dcc757580b
tree1373f011a051a00b3ada29d89dbc461a10efe350
parenta35141d395019c837d16419c6ef57662a6efefc5
InlineSpiller: Don't fold spills into undef reads

This was producing a load into a dead register which was a verifier
error.
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/test/CodeGen/AMDGPU/fold-restore-undef-use.mir [new file with mode: 0644]