]> granicus.if.org Git - llvm/commit
[MSP430] Fix PR32769: Select8 and Select16 need to have SR in Uses.
authorVadzim Dambrouski <pftbest@gmail.com>
Wed, 26 Apr 2017 00:33:59 +0000 (00:33 +0000)
committerVadzim Dambrouski <pftbest@gmail.com>
Wed, 26 Apr 2017 00:33:59 +0000 (00:33 +0000)
commited89889572a99c7d1ec5bb556f3b4bfc7925891e
tree1e24af41c6eb93a27ba35df322a30291b2da34ff
parent4bfa64aac5323ee084178d575c7bf6e058904ded
[MSP430] Fix PR32769: Select8 and Select16 need to have SR in Uses.

If Select pseudo instruction doesn't have use SR, then
CMP instructions are being marked as dead and later can be
removed by MachineCSE pass. This leads to incorrect code
generation.

Differential Revision: https://reviews.llvm.org/D32473

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301372 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/MSP430/MSP430InstrInfo.td
test/CodeGen/MSP430/select-use-sr.ll [new file with mode: 0644]