1. Oct 05, 2016
    • Hal Finkel's avatar
      Don't filter diagnostics written as YAML to the output file · bdd6735a
      Hal Finkel authored
      The purpose of the YAML diagnostic output file is to collect information on
      optimizations performed, or not performed, for later processing by tools that
      help users (and compiler developers) understand how code was optimized. As
      such, the diagnostics that appear in the file should not be coupled to what a
      user might want to see summarized for them as the compiler runs, and in fact,
      because the user likely does not know what optimization diagnostics their tools
      might want to use, the user cannot provide a useful filter regardless. As such,
      we shouldn't filter the diagnostics going to the output file.
      
      Differential Revision: https://reviews.llvm.org/D25224
      
      llvm-svn: 283236
      bdd6735a
    • Reid Kleckner's avatar
      Test what happens when tag lookup and redeclaration lookup disagree · 56f45356
      Reid Kleckner authored
      Clang has a diagnostic for the what happens when an elaborated type
      implicitly creates a tag declaration and the initial tag lookup fails,
      but the redeclaration lookup succeeds and finds a non-tag type. However,
      it wasn't tested, and looked like dead code. After much staring, we
      discovered how to exercise it, and are now committing the test for
      posterity.
      
      In this example, the tag lookup will not find A, but then when we go to
      insert a declaration of A at global scope, we discover the template
      friend, which is not a tag type.
      
        struct C {
          template <typename> friend struct A;
        };
        struct B {
          struct A *p;
        };
      
      llvm-svn: 283235
      56f45356
    • Chris Bieneman's avatar
      [CMake] Exclude intrinsics_gen from LLVM_COMMON_DEPENDS in LLVMConfig.cmake · 68169737
      Chris Bieneman authored
      CMake requires that all targets expressed as dependencies exist, so we can't have intrinsics_gen in LLVM_COMMON_DEPENDS when it is written out, otherwise projects building out of tree will have CMake errors.
      
      llvm-svn: 283234
      68169737
    • Michael Kruse's avatar
      [ScopInfo] Add -polly-unprofitable-scalar-accs option. · 6ab44768
      Michael Kruse authored
      With this option one can disable the heuristic that assumes that statements with
      a scalar write access cannot be profitably optimized. Such a statement instances
      necessarily have WAW-dependences to itself. With DeLICM scalar accesses can be
      changed to array accesses, which can avoid these WAW-dependence.
      
      llvm-svn: 283233
      6ab44768
    • Michael Kruse's avatar
      [ScopInfo] Scalar access do not have indirect base pointers. · ca7cbcca
      Michael Kruse authored
      ScopArrayInfo used to determine base pointer origins by looking up whether the
      base pointer is a load. The "base pointer" for scalar accesses is the
      llvm::Value being accessed. This is only a symbolic base pointer, it
      represents the alloca variable (.s2a or .phiops) generated for it at code
      generation.
      
      This patch disables determining base pointer origin for scalars.
      A test case where this caused a crash will be added in the next commit. In that
      test SAI tried to get the origin base pointer that was only declared later,
      therefore not existing. This is probably only possible for scalars used in
      PHINode incoming blocks.
      
      llvm-svn: 283232
      ca7cbcca
    • Adam Nemet's avatar
      0428e932
    • Adam Nemet's avatar
      Allow derived classes of OptimizationRemarkAnalysis in YAML · 2780ee0d
      Adam Nemet authored
      llvm-svn: 283230
      2780ee0d
    • Rui Ueyama's avatar
      Add a comment. · af9793d1
      Rui Ueyama authored
      llvm-svn: 283229
      af9793d1
    • Alex Lorenz's avatar
      [Sema] Format a comment line so that it fits 80 columns. NFC · 9e5afc4a
      Alex Lorenz authored
      llvm-svn: 283228
      9e5afc4a
  2. Oct 04, 2016