diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2012-01-25 08:27:40 +0000 | 
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2012-01-25 08:27:40 +0000 | 
| commit | 70d50ee8fb36a99a46a15f2955bb12e45919304e (patch) | |
| tree | 8df2e21a2d04ab1178178b720080a742feeb4c7b /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
| parent | 25442b8e724818c1f4554d5d2b9fc8d799f8246a (diff) | |
| download | llvm-70d50ee8fb36a99a46a15f2955bb12e45919304e.zip llvm-70d50ee8fb36a99a46a15f2955bb12e45919304e.tar.gz llvm-70d50ee8fb36a99a46a15f2955bb12e45919304e.tar.bz2  | |
Support pointer comparisons against constants, when looking at the inline-cost
savings from a pointer argument becoming an alloca. Sometimes callees will even
compare a pointer to null and then branch to an otherwise unreachable block!
Detect these cases and compute the number of saved instructions, instead of
bailing out and reporting no savings.
llvm-svn: 148941
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
