Skip to content
  1. Aug 07, 2018
  2. Aug 06, 2018
  3. Aug 05, 2018
    • David Bolvansky's avatar
      Fix tests for changed opt remarks format · eb3aad99
      David Bolvansky authored
      Summary:
      Optimization remark format is slightly changed by LLVM patch D49412.
      Two tests are fixed with expected messages changed.
      Frankly speaking I have not tested this change yet. I will test when manage to setup the project.
      
      Reviewers: xbolva00
      
      Reviewed By: xbolva00
      
      Subscribers: mehdi_amini, eraman, steven_wu, dexonsmith
      
      Differential Revision: https://reviews.llvm.org/D50241
      
      llvm-svn: 338971
      eb3aad99
    • Bruno Ricci's avatar
      [AST][NFC] Remove unneeded forward declarations in Type.h · 59355e58
      Bruno Ricci authored
      These forward declarations for various classes in the Type
      hierarchy are not needed since they are all forward declared
      systematically a few lines below.
      
      llvm-svn: 338966
      59355e58
    • George Burgess IV's avatar
      Use Optional instead of unique_ptr; NFC · b65955e9
      George Burgess IV authored
      Looks like the only reason we use a unique_ptr here is so that we can
      conditionally construct a LogicalErrorHandler. It's a small type, and
      Optional can do the same thing with 100% fewer heap allocations.
      
      llvm-svn: 338962
      b65955e9
  4. Aug 04, 2018
    • Matt Morehouse's avatar
      [clang-fuzzer] Remove unused typedef. · b1218ec8
      Matt Morehouse authored
      llvm-svn: 338946
      b1218ec8
    • Richard Smith's avatar
      Avoid creating conditional cleanup blocks that contain only @llvm.lifetime.end calls · aa140bf1
      Richard Smith authored
      When a non-extended temporary object is created in a conditional branch, the
      lifetime of that temporary ends outside the conditional (at the end of the
      full-expression). If we're inserting lifetime markers, this means we could end
      up generating
      
        if (some_cond) {
          lifetime.start(&tmp);
          Tmp::Tmp(&tmp);
        }
        // ...
        if (some_cond) {
          lifetime.end(&tmp);
        }
      
      ... for a full-expression containing a subexpression of the form `some_cond ?
      Tmp().x : 0`. This patch moves the lifetime start for such a temporary out of
      the conditional branch so that we don't need to generate an additional basic
      block to hold the lifetime end marker.
      
      This is disabled if we want precise lifetime markers (for asan's
      stack-use-after-scope checks) or of the temporary has a non-trivial destructor
      (in which case we'd generate an extra basic block anyway to hold the destructor
      call).
      
      Differential Revision: https://reviews.llvm.org/D50286
      
      llvm-svn: 338945
      aa140bf1
    • Emmett Neyman's avatar
      LLVM Proto Fuzzer - Run Functions on Suite of Inputs · 2655b038
      Emmett Neyman authored
      Summary:
      Added corpus of arrays to use as inputs for the functions. Check that the two
      functions modify the inputted arrays in the same way.
      
      Reviewers: kcc, morehouse
      
      Reviewed By: morehouse
      
      Subscribers: mgorny, cfe-commits, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D50194
      
      llvm-svn: 338943
      2655b038
    • Richard Smith's avatar
      1887819d
    • Richard Smith's avatar
      [constexpr] Support for constant evaluation of __builtin_memcpy and · 06f71b5b
      Richard Smith authored
      __builtin_memmove (in non-type-punning cases).
      
      This is intended to permit libc++ to make std::copy etc constexpr
      without sacrificing the optimization that uses memcpy on
      trivially-copyable types.
      
      __builtin_strcpy and __builtin_wcscpy are not handled by this change.
      They'd be straightforward to add, but we haven't encountered a need for
      them just yet.
      
      This reinstates r338455, reverted in r338602, with a fix to avoid trying
      to constant-evaluate a memcpy call if either pointer operand has an
      invalid designator.
      
      llvm-svn: 338941
      06f71b5b
Loading