ARM: Don't rewrite add reg, $sp, 0 -> mov reg, $sp if the add defines CPSR.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 27 Feb 2018 19:00:59 +0000 (19:00 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 27 Feb 2018 19:00:59 +0000 (19:00 +0000)
commite8436e8631540850f39ca5cb1f3d5a361ea714ab
tree7049485da69589bce3e24427887ad0f786ad4663
parentc0a12914785ded3f203401715e6e9616f8985619
ARM: Don't rewrite add reg, $sp, 0 -> mov reg, $sp if the add defines CPSR.

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

llvm-svn: 326226
llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
llvm/test/CodeGen/Thumb2/cmp-frame.ll [new file with mode: 0644]