OSDN Git Service

If there is a def of a super-register followed by a use of a sub-register, do *not...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 3 Jun 2009 05:15:46 +0000 (05:15 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 3 Jun 2009 05:15:46 +0000 (05:15 +0000)
commit95299c194d4f852d17554779117c4125c3fae73d
treeecd59e7769fa6b3a49757aa63fc467358c4c13c9
parenta321dcd38d2bdafa06537515de97787aa0e83974
If there is a def of a super-register followed by a use of a sub-register, do *not* add an implicit def of the sub-register. e.g.
EAX = ..., AX<imp-def>
...
    = AX

This creates a double-def. Apparently this used to be necessary but is no longer needed.

Thanks to Anton for pointing this out. Anton, I cannot create a test case without your uncommitted ARM patches. Please check in a test case for me.

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