summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/regfree.c
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-04-05 23:51:24 +0000
committerJim Grosbach <grosbach@apple.com>2012-04-05 23:51:24 +0000
commitd6a1a1dc2ff47c764eb1ae15b09027edf4ad7286 (patch)
tree86766faef828c0ca64fed67493c19296bd4c5566 /llvm/lib/Support/regfree.c
parenta974688d353881cb37f6b834bb40377545505c26 (diff)
downloadbcm5719-llvm-d6a1a1dc2ff47c764eb1ae15b09027edf4ad7286.tar.gz
bcm5719-llvm-d6a1a1dc2ff47c764eb1ae15b09027edf4ad7286.zip
ARM: Don't form a t2LDRi8 or t2STRi8 with an offset of zero.
The load/store optimizer splits LDRD/STRD into two instructions when the register pairing doesn't work out. For negative offsets in Thumb2, it uses t2STRi8 to do that. That's fine, except for the case when the offset is in the range [-4,-1]. In that case, we'll also form a second t2STRi8 with the original offset plus 4, resulting in a t2STRi8 with a non-negative offset, which ends up as if it were an STRT, which is completely bogus. Similarly for loads. No testcase, unfortunately, as any I've been able to construct is both large and extremely fragile. rdar://11193937 llvm-svn: 154141
Diffstat (limited to 'llvm/lib/Support/regfree.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud