aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-02-12 08:36:35 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-02-12 08:36:35 +0000
commitdb95d04be4e9bc77a027723757ddd2eef069bd63 (patch)
tree95ed26f177d99df63944c121063966849f7eb91f /clang/lib/Frontend/InitPreprocessor.cpp
parentcf33c93bd4c763c1fa8fffc09089aabbf192be8f (diff)
downloadllvm-db95d04be4e9bc77a027723757ddd2eef069bd63.zip
llvm-db95d04be4e9bc77a027723757ddd2eef069bd63.tar.gz
llvm-db95d04be4e9bc77a027723757ddd2eef069bd63.tar.bz2
[X86] A heuristic to estimate the size impact for converting stack-relative parameter movs to pushes
This gives a rough estimate of whether using pushes instead of movs is profitable, in terms of size. We go over all calls in the MachineFunction and compute: a) For each callsite that can not use pushes, the penalty of not having a reserved call frame. b) For each callsite that can use pushes, the gain of actually replacing the movs with pushes (and the potential penalty of having to readjust the stack). Differential Revision: http://reviews.llvm.org/D7561 llvm-svn: 228915
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions