OSDN Git Service

When setting the "unused" info, take into account something like this:
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Mar 2008 23:22:43 +0000 (23:22 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Mar 2008 23:22:43 +0000 (23:22 +0000)
commited1fcd8987a7d39ca69bfa3cbf14b270738f029c
tree06eb1c58fd9cce63d8df5e358bb336cdfd8fde2a
parenteb49c4e008522df75f1b3f17ec0e2644eb4b1259
When setting the "unused" info, take into account something like this:

    %r3<def> = OR %x3<kill>, %x3

We don't want to mark the %r3 as unused even though it's a sub-register of %x3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48003 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterScavenging.h
lib/CodeGen/RegisterScavenging.cpp