summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-07-30 21:41:50 +0000
committerSanjay Patel <spatel@rotateright.com>2015-07-30 21:41:50 +0000
commit1166f2ff9f30a84fea630888b297bf58c3dba7e9 (patch)
tree80e04d68cbf5db5d6a91f2c552dc5f0fff249ca8 /llvm/lib/MC
parent0deb694d943f914657437229f077b64aacf4fec7 (diff)
downloadbcm5719-llvm-1166f2ff9f30a84fea630888b297bf58c3dba7e9.tar.gz
bcm5719-llvm-1166f2ff9f30a84fea630888b297bf58c3dba7e9.zip
fix memcpy/memset/memmove lowering when optimizing for size
Fixing MinSize attribute handling was discussed in D11363. This is a prerequisite patch to doing that. The handling of OptSize when lowering mem* functions was broken on Darwin because it wants to ignore -Os for these cases, but the existing logic also made it ignore -Oz (MinSize). The Linux change demonstrates a widespread problem. The backend doesn't usually recognize the MinSize attribute by itself; it assumes that if the MinSize attribute exists, then the OptSize attribute must also exist. Fixing this more generally will be a follow-on patch or two. Differential Revision: http://reviews.llvm.org/D11568 llvm-svn: 243693
Diffstat (limited to 'llvm/lib/MC')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud