Skip to content
  1. Nov 29, 2012
  2. Nov 28, 2012
  3. Nov 27, 2012
    • Meador Inge's avatar
      instcombine: Don't replace all uses for instructions with no uses · f1bc9e74
      Meador Inge authored
      My commit to migrate the printf simplifiers from the simplify-libcalls
      in r168604 introduced a regression reported by Duncan [1].  The problem
      is that in some cases the library call simplifier can return a new value
      that has no uses and the new value's type is different than the old value's
      type (which is fine because there are no uses).  The specific case that
      triggered the bug looked something like:
      
         declare void @printf(i8*, ...)
         ...
         call void (i8*, ...)* @printf(i8* %fmt)
      
      Which we want to optimized into:
      
         call i32 @putchar(i32 104)
      
      However, the code was attempting to replace all uses of the printf with
      the putchar and the types differ, hence a crash.  This is fixed by *just*
      deleting the original instruction when there are no uses.  The old
      simplify-libcalls pass is already doing something similar.
      
      [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-November/056338.html
      
      llvm-svn: 168716
      f1bc9e74
    • Bill Wendling's avatar
      Remove the dependent libraries feature. · ee5984df
      Bill Wendling authored
      The dependent libraries feature was never used and has bit-rotted. Remove it.
      
      llvm-svn: 168694
      ee5984df
    • Dmitry Vyukov's avatar
      tsan: instrument atomic nand operation · a878e743
      Dmitry Vyukov authored
      llvm-svn: 168684
      a878e743
    • Meador Inge's avatar
      instcombine: Migrate sprintf optimizations · 25c9b3b6
      Meador Inge authored
      This patch migrates the sprintf optimizations from the simplify-libcalls
      pass into the instcombine library call simplifier.
      
      llvm-svn: 168677
      25c9b3b6
    • Eli Friedman's avatar
      Get rid of the getPointeeAlignment helper function from · b14873c4
      Eli Friedman authored
      InstCombineLoadStoreAlloca.cpp, which had many issues.
      (At least two bugs were noted on llvm-commits, and it was overly conservative.)
      Instead, use getOrEnforceKnownAlignment.
      
      llvm-svn: 168629
      b14873c4
  4. Nov 26, 2012
Loading