]> granicus.if.org Git - llvm/commit
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)
commitc5826b9f48c8e55f21fda97e3511fb5aa6379020
tree917130c94629ee51782e9d4c281dfee8ccfdb21b
parent51c2ad77cdef7b7743ed52bfdc5083881583ff7c
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocFast.cpp