RegAllocFast: Do not allocate registers for undef uses
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 19 Mar 2019 19:16:04 +0000 (19:16 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 19 Mar 2019 19:16:04 +0000 (19:16 +0000)
commit3c98cdd21832207694ab9307f83a6c6e4e21185b
tree4d715cd3b14d2eda22b7b373ce2419c493c4bf3f
parent72122d058b170eafc643ec659a9298b3b103cdfd
RegAllocFast: Do not allocate registers for undef uses

Do not actually allocate a register for an undef use. Previously we we
would create unnecessary reload instruction for undef uses where the
register wasn't live.

Patch by Matthias Braun

llvm-svn: 356501
llvm/lib/CodeGen/RegAllocFast.cpp