Fix load-store optimizer on thumbv4t
authorJonathan Roelofs <jonathan@codesourcery.com>
Wed, 21 Jan 2015 22:39:43 +0000 (22:39 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Wed, 21 Jan 2015 22:39:43 +0000 (22:39 +0000)
commitcab5680f6c75867afa51dddc8dc8f4e3188e4d37
treed95be1c7707d5aae6f20b2a6adc29f7af282698a
parent448c4942e75e109692919e1a1a10ad8b2f0e3ae0
Fix load-store optimizer on thumbv4t

Thumbv4t does not have lo->lo copies other than MOVS,
and that can't be predicated. So emit MOVS when needed
and bail if there's a predicate.

http://reviews.llvm.org/D6592

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226711 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll [new file with mode: 0644]