aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-05-02 18:30:08 +0000
committerTim Northover <tnorthover@apple.com>2016-05-02 18:30:08 +0000
commitc08db1840c32392725dfba26228145aac5f80ba0 (patch)
tree7d07851aa3086ea516de154356c4b98956c61259 /llvm/lib/Object/Object.cpp
parentff12f230809162a7e8e5c3846cba2addfca8a844 (diff)
downloadllvm-c08db1840c32392725dfba26228145aac5f80ba0.zip
llvm-c08db1840c32392725dfba26228145aac5f80ba0.tar.gz
llvm-c08db1840c32392725dfba26228145aac5f80ba0.tar.bz2
ARM: fix handling of SUB immediates in peephole opt.
We were negating an immediate that was going to be used in a SUBri form unnecessarily. Since ADD/SUB are very similar we *can* do that, but we have to change the SUB to an ADD at the same time. This also applies to ADD, and allows us to handle a slightly larger range of immediates for those two operations. rdar://25992245 llvm-svn: 268276
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions