Skip to content
  1. Jul 03, 2013
  2. May 27, 2013
    • Preston Gurd's avatar
      Convert sqrt functions into sqrt instructions when -ffast-math is in effect. · 048f99de
      Preston Gurd authored
      When -ffast-math is in effect (on Linux, at least), clang defines
      __FINITE_MATH_ONLY__ > 0 when including <math.h>. This causes the
      preprocessor to include <bits/math-finite.h>, which renames the sqrt functions.
      For instance, "sqrt" is renamed as "__sqrt_finite". 
      
      This patch adds the 3 new names in such a way that they will be treated
      as equivalent to their respective original names.
      
      llvm-svn: 182739
      048f99de
  3. Mar 13, 2013
  4. Mar 09, 2013
    • Benjamin Kramer's avatar
      TLI: Microoptimize calls to strlen+memcmp to strncmp. · 160f72dc
      Benjamin Kramer authored
      The strlen+memcmp was hidden in a call to StringRef::operator==. We check if
      there are any null bytes in the string upfront so we can simplify the comparison
      Small speedup when compiling code with many function calls.
      
      llvm-svn: 176766
      160f72dc
  5. Mar 05, 2013
    • Meador Inge's avatar
      Add more functions to the TLI. · b904e6e4
      Meador Inge authored
      
      
      This patch adds many more functions to the target library information.
      All of the functions being added were discovered while doing the migration
      of the simplify-libcalls attribute annotation functionality to the
      functionattrs pass.  As a part of that work the attribute annotation logic
      will query TLI to determine if a function should be annotated or not.
      
      Signed-off-by: default avatarMeador Inge <meadori@codesourcery.com>
      llvm-svn: 176514
      b904e6e4
  6. Nov 22, 2012
  7. Nov 10, 2012
    • Meador Inge's avatar
      Add more functions to the target library information. · 2526a42e
      Meador Inge authored
      In the process of migrating optimizations from the simplify-libcalls pass
      to the instcombine pass I noticed that a few functions are missing from
      the target library information.  These functions need to be available for
      querying in the instcombine library call simplifiers.  More functions will
      probably be added in the future as more simplifiers are migrated to
      instcombine.
      
      llvm-svn: 167659
      2526a42e
  8. Aug 29, 2012
    • Benjamin Kramer's avatar
      Make MemoryBuiltins aware of TargetLibraryInfo. · 8bcc9711
      Benjamin Kramer authored
      This disables malloc-specific optimization when -fno-builtin (or -ffreestanding)
      is specified. This has been a problem for a long time but became more severe
      with the recent memory builtin improvements.
      
      Since the memory builtin functions are used everywhere, this required passing
      TLI in many places. This means that functions that now have an optional TLI
      argument, like RecursivelyDeleteTriviallyDeadFunctions, won't remove dead
      mallocs anymore if the TLI argument is missing. I've updated most passes to do
      the right thing.
      
      Fixes PR13694 and probably others.
      
      llvm-svn: 162841
      8bcc9711
  9. Aug 22, 2012
  10. Aug 03, 2012
  11. Jul 25, 2012
  12. Jul 24, 2012
  13. Apr 18, 2012
  14. Feb 12, 2012
  15. Dec 20, 2011
  16. Dec 08, 2011
  17. Dec 01, 2011
  18. Nov 30, 2011
  19. Nov 17, 2011
  20. Jun 09, 2011
  21. May 21, 2011
  22. Apr 20, 2011
  23. Apr 19, 2011
  24. Mar 03, 2011
  25. Feb 18, 2011
Loading