aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2016-10-17 12:54:07 +0000
committerJames Molloy <james.molloy@arm.com>2016-10-17 12:54:07 +0000
commitaa79b19a3e8ba5099f6fb5843e7e8cd3f44bd5ef (patch)
tree4051488e7e83fe93dbfda20e32f9934488606484 /llvm/lib/Support/Path.cpp
parentecbcd7ca11005fbb8a314d92b7abc79750a78274 (diff)
downloadllvm-aa79b19a3e8ba5099f6fb5843e7e8cd3f44bd5ef.zip
llvm-aa79b19a3e8ba5099f6fb5843e7e8cd3f44bd5ef.tar.gz
llvm-aa79b19a3e8ba5099f6fb5843e7e8cd3f44bd5ef.tar.bz2
[SDAG] Use ABI type alignment for constant pools when optimizing for size
SelectionDAG::getConstantPool will automatically determine an appropriate alignment if one is not specified. It does this by querying the type's preferred alignment. This can end up creating quite a lot of padding when the preferred alignment for vectors is 128. In optimize-for-size mode, it makes sense to instead query the ABI type alignment which is often smaller and causes less padding. llvm-svn: 284381
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions