diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-21 19:30:05 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-21 19:30:05 +0000 |
commit | bd0f1079298c66201f89b83cbbe168fb90bc3534 (patch) | |
tree | 1c68131a2182a89728d7cb4d891a590d40c1542f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f040118167db7c2f8ab8926628bafbac6370cfa8 (diff) | |
download | llvm-bd0f1079298c66201f89b83cbbe168fb90bc3534.zip llvm-bd0f1079298c66201f89b83cbbe168fb90bc3534.tar.gz llvm-bd0f1079298c66201f89b83cbbe168fb90bc3534.tar.bz2 |
BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability.
Zero is used by BlockFrequencyInfo as a special "don't know" value. It also
causes a sink for frequencies as you can't ever get off a zero frequency with
more multiplies.
This recovers a 10% regression on MultiSource/Benchmarks/7zip. A zero frequency
was propagated into an inner loop causing excessive spilling.
PR16402.
llvm-svn: 184584
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions