Fix for PR4225: When rewriter reuse a value in a physical register , it clear the...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 3 Jun 2009 09:00:27 +0000 (09:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 3 Jun 2009 09:00:27 +0000 (09:00 +0000)
commit2c48fe6757284e363248ea725ceedca8dd7ee272
tree6d79a7b7cf4ae2b9fc4ad9cac053d997eb9f2cad
parent70fd60bd57250799672378fa2f7c5e804cb3d98d
Fix for PR4225: When rewriter reuse a value in a physical register , it clear the register kill operand marker and its kill ops information. However, the cleared operand may be a def of a super-register. Clear the kill ops info for the super-register's sub-registers as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72758 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegRewriter.cpp
test/CodeGen/X86/2009-06-02-RewriterBug.ll [new file with mode: 0644]