diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-07-30 21:41:50 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-07-30 21:41:50 +0000 |
commit | 1166f2ff9f30a84fea630888b297bf58c3dba7e9 (patch) | |
tree | 80e04d68cbf5db5d6a91f2c552dc5f0fff249ca8 /llvm/lib/Option | |
parent | 0deb694d943f914657437229f077b64aacf4fec7 (diff) | |
download | bcm5719-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/Option')
0 files changed, 0 insertions, 0 deletions