1. May 03, 2020
  2. May 02, 2020
    • Benjamin Kramer's avatar
      Use realloc for NestedNameSpecifierLocBuilder · cc1c5165
      Benjamin Kramer authored
      These allocations are so tiny that the buffer can be grown in-place most
      of the time.
      cc1c5165
    • mydeveloperday's avatar
      [clang-format] NFC - clang-format the FormatTests · ece7e95f
      mydeveloperday authored
      Summary:
      Ensure the clang-format unit tests are themselves clang-formatted
      
      Having areas of the llvm code which are clang-format clean, give us more areas to run new clang-format binaries on ensuring we haven't broken anything.
      
      It seems to me we SHOULD have this clang-formatted at a minimum, otherwise how can we expect others to use clang-format if we "don't eat our own dogfood", also if the tests are dependent on the formatting of the code then that would also be bad!
      
      Reviewed By: sammccall
      
      Subscribers: cfe-commits
      
      Tags: #clang, #clang-format
      
      Differential Revision: https://reviews.llvm.org/D79204
      ece7e95f
    • Benjamin Kramer's avatar
      [Allocator] Make Deallocate() pass alignment and make it use (de)allocate_buffer · d3bc86c2
      Benjamin Kramer authored
      This lets it use sized deallocation and make more efficient alignment
      decisions. Also adjust BumpPtrAllocator to always allocate at
      alignof(std::max_align_t).
      d3bc86c2
    • Sam Elliott's avatar
      [RISCV] Implement convertSelectOfConstantsToMath · fe4245a4
      Sam Elliott authored
      Summary:
      The current lowering of `select` on RISC-V uses a branch instruction to load a
      register with one or other value. This is inefficient, especially in the case of
      small constants that can be computed easily.
      
      By implementing the TargetLowering::convertSelectOfConstantsToMath hook, some of
      the simpler cases are covered that let us avoid introducing a branch in these
      cases.
      
      Reviewed By: luismarques
      
      Differential Revision: https://reviews.llvm.org/D79260
      fe4245a4