OSDN Git Service

ARM: only form SMMLS when SUBE flags unused.
authorTim Northover <tnorthover@apple.com>
Tue, 2 Aug 2016 23:12:36 +0000 (23:12 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 2 Aug 2016 23:12:36 +0000 (23:12 +0000)
commitd022ddb13854f41b7a06b6770d52b79d147bb007
tree59a0e7583847ac1664ca7f317a34c6002f8471a8
parentd5adfbcabce961c164c275fff9ec62112c2310fb
ARM: only form SMMLS when SUBE flags unused.

In this particular example we wouldn't want the smmls anyway (the value is
actually unused), but in general smmls does not provide the required flags
register so if that SUBE result is used we can't replace it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/ARM/smml.ll