Go to file
Matthias Braun c31032d607 InstCombine: Restrict computeKnownBits() on all Values to OptLevel > 2
As part of r251146 InstCombine was extended to call computeKnownBits on
every value in the function to determine whether it happens to be
constant. This increases typical compiletime by 1-3% (5% in irgen+opt
time) in my measurements. On the other hand this case did not trigger
once in the whole llvm-testsuite.

This patch introduces the notion of ExpensiveCombines which are only
enabled for OptLevel > 2. I removed the check in InstructionSimplify as
that is called from various places where the OptLevel is not known but
given the rarity of the situation I think a check in InstCombine is
enough.

Differential Revision: http://reviews.llvm.org/D16835

llvm-svn: 263047
2016-03-09 18:47:11 +00:00
clang Use an explicit instantiation to work around delayed template parsing for MSVC-built bots. 2016-03-09 18:07:17 +00:00
clang-tools-extra [docs] Clean up doxygen comments a bit. 2016-03-06 04:05:59 +00:00
compiler-rt Fix a minor bug in test 2016-03-09 17:13:18 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Update status to mark 2579 complete 2016-03-09 18:09:07 +00:00
libcxxabi Reducing stack usage of test 2016-03-04 14:25:13 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld [lto] Don't lazy load metadata for now. 2016-03-09 18:38:40 +00:00
lldb Last round of preliminary cleanup in my refactoring of aliases. 2016-03-09 02:27:57 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm InstCombine: Restrict computeKnownBits() on all Values to OptLevel > 2 2016-03-09 18:47:11 +00:00
openmp [STATS] fix output formatting when sample count is 0 2016-03-03 21:24:13 +00:00
polly Also clang-format *.c run-time library files 2016-03-08 07:34:58 +00:00