diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-15 00:41:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-15 00:41:48 +0000 |
commit | 79aa513231c48b31732a5354cd01a278a79656e1 (patch) | |
tree | 43a4b6f6ce8296193c5f19684e840a5949636163 /llvm/lib/Analysis/InlineCost.cpp | |
parent | 3904590ba8c8eb68699696c8545caaaa9144854a (diff) | |
download | bcm5719-llvm-79aa513231c48b31732a5354cd01a278a79656e1.tar.gz bcm5719-llvm-79aa513231c48b31732a5354cd01a278a79656e1.zip |
Minor optimization to constant evaluation: don't bother computing expr source
locations for diagnostics we're not going to emit, and don't track the subobject
designator outside C++11 (since we're not going to use it anyway).
This seems to give about a 0.5% speedup on 403.gcc/combine.c, but the results
were sufficiently noisy that I can't reject the null hypothesis.
llvm-svn: 152761
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
0 files changed, 0 insertions, 0 deletions