Don't always apply kill flag in thumb2 ABS pseudo expansion.
authorPete Cooper <peter_cooper@apple.com>
Thu, 30 Apr 2015 22:15:59 +0000 (22:15 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 30 Apr 2015 22:15:59 +0000 (22:15 +0000)
commitd47066e86b47c40c3c5ba93e211865df68e49a67
treea1935504d5118653eb7441bc82a46334eec5ed91
parent7a1b190bcd92cc0b0a1e089f981372cf236afe15
Don't always apply kill flag in thumb2 ABS pseudo expansion.

The expansion for t2ABS was always setting the kill flag on the rsb instruction.
It should instead only be set on rsb if it was set on the original ABS instruction.

rdar://problem/20752113

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236272 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/t2abs-killflags.ll [new file with mode: 0644]