summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-03-16 00:13:44 +0000
committerCameron Zwarich <zwarich@apple.com>2011-03-16 00:13:44 +0000
commit0454253d7a0b0c2355fbba8be6ac4d8c8c3c0867 (patch)
tree0a0b80d9ea1bbe75c285752eb2c4b0ae2aea1fb3 /clang/lib/Frontend/CompilerInvocation.cpp
parent7b0f3c6a1a4f0708e80333536cd90d0d787f2825 (diff)
downloadbcm5719-llvm-0454253d7a0b0c2355fbba8be6ac4d8c8c3c0867.tar.gz
bcm5719-llvm-0454253d7a0b0c2355fbba8be6ac4d8c8c3c0867.zip
Only convert allocas to scalars if it is profitable. The profitability metric I
chose is having a non-memcpy/memset use and being larger than any native integer type. Originally I chose having an access of a size smaller than the total size of the alloca, but this caused some minor issues on the spirit benchmark where SRoA runs again after some inlining. This fixes <rdar://problem/8613163>. llvm-svn: 127718
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud