Skip to content
  1. Oct 11, 2017
  2. Oct 10, 2017
    • Matthew Simpson's avatar
      [SparsePropagation] Use SmallVector for work lists · c253c193
      Matthew Simpson authored
      This patch changes the work lists from std::vector to SmallVector, which
      matches the SCCP implementation. This patch also updates some related comments.
      
      llvm-svn: 315373
      c253c193
    • Jake Ehrlich's avatar
      [llvm-objcopy] Fix latent bug that allowed some Sections to be improperly cast... · 70bd75f8
      Jake Ehrlich authored
      [llvm-objcopy] Fix latent bug that allowed some Sections to be improperly cast to StringTableSections
      
      If a Section had Type SHT_STRTAB (which could happen if you had a
      .dynstr section) it was possible to cast Section to StringTableSection
      and get away with any operation that was supported by SectionBase
      without it being noticed. This change makes this bug easier to notice
      and fixes it where it occurred. It also made me realize that there was
      some duplication of efforts in the loop that calls ::initialize. These
      issues are all fixed by this change.
      
      Differential Revision: https://reviews.llvm.org/D38329
      
      llvm-svn: 315372
      70bd75f8
    • Rafael Espindola's avatar
      Make the ELFObjectFile constructor private. · ef421f9c
      Rafael Espindola authored
      This forces every user to use the new create method that returns an
      Expected. This in turn propagates better error messages.
      
      llvm-svn: 315371
      ef421f9c
    • Vlad Tsyrklevich's avatar
      Revert "Classify llvm-cfi-verify." · a45919f5
      Vlad Tsyrklevich authored
      This reverts commit r315363. It has a simple build failure, but more
      importantly I want to confirm that unit tests run in check-all to make
      sure that they don't silently break in the future.
      
      llvm-svn: 315370
      a45919f5
    • Dehao Chen's avatar
      Use the first instruction's count to estimate the funciton's entry frequency. · 3f56a05a
      Dehao Chen authored
      Summary: In the current implementation, we only have accurate profile count for standalone symbols. For inlined functions, we do not have entry count data because it's not available in LBR. In this patch, we use the first instruction's frequency to estimiate the function's entry count, especially for inlined functions. This may be inaccurate due to debug info in optimized code. However, this is a better estimate than the static 80/20 estimation we have in the current implementation.
      
      Reviewers: tejohnson, davidxl
      
      Reviewed By: tejohnson
      
      Subscribers: sanjoy, llvm-commits, aprantl
      
      Differential Revision: https://reviews.llvm.org/D38478
      
      llvm-svn: 315369
      3f56a05a
Loading