1. Apr 27, 2022
    • Sanjay Patel's avatar
      [InstCombine] fold freeze of partial undef/poison vector constants · c8ed784e
      Sanjay Patel authored
      We can always replace the undef elements in a vector constant
      with regular constants to get rid of the freeze:
      https://alive2.llvm.org/ce/z/nfRb4F
      
      The select diffs show that we might do better by adjusting the
      logic for a frozen select condition. We may also want to refine
      the vector constant replacement to consider forming a splat.
      
      Differential Revision: https://reviews.llvm.org/D123962
      c8ed784e
    • Craig Topper's avatar
      [RISCV] Add more out of range immediate tests to rv64zbp-invalid.s. NFC · 4c98e183
      Craig Topper authored
      This tests the Zbp instructions that change immediate range between
      riscv32 and riscv64. We were only testing them for riscv32 before.
      4c98e183
    • Vasileios Porpodas's avatar
      [SLP][TTI] Refactoring of `getShuffleCost` `Args` to work like `getArithmeticInstrCost` · 55ce296d
      Vasileios Porpodas authored
      Before this patch `Args` was used to pass a broadcat's arguments by SLP.
      This patch changes this. `Args` is now used for passing the operands of
      the shuffle.
      
      Differential Revision: https://reviews.llvm.org/D124202
      55ce296d
    • Augie Fackler's avatar
      Attributes: add a new `allocptr` attribute · a907d36c
      Augie Fackler authored
      This continues the push away from hard-coded knowledge about functions
      towards attributes. We'll use this to annotate free(), realloc() and
      cousins and obviate the hard-coded list of free functions.
      
      Differential Revision: https://reviews.llvm.org/D123083
      a907d36c
    • Craig Topper's avatar
      [RISCV] Add out of range immediate tests for shifts and rotates on rv64. · 3a9ae9cf
      Craig Topper authored
      We were only testing the shared instruction mnemonics in rv32 tests.
      
      Reviewed By: reames
      
      Differential Revision: https://reviews.llvm.org/D124460
      3a9ae9cf
    • Peter Klausler's avatar
      [flang] Fix crash from PDT component init in module file · f4bb211a
      Peter Klausler authored
      Semantics now needs to preserve the parse trees from module files,
      in case they contain parameterized derived type definitions with
      component initializers that may require re-analysis during PDT
      instantiation.  Save them in the SemanticsContext.
      
      Differential Revision: https://reviews.llvm.org/D124467
      f4bb211a
    • Jay Foad's avatar
      [AMDGPU] Precommit a test case for D124450 · 6753bb2c
      Jay Foad authored
      6753bb2c
    • LLVM GN Syncbot's avatar
      [gn build] Port 7b81192d · 22438667
      LLVM GN Syncbot authored
      22438667
    • Jeffrey Tan's avatar
      Introduce new symbol on-demand for debug info · 7b81192d
      Jeffrey Tan authored
      This diff introduces a new symbol on-demand which skips
      loading a module's debug info unless explicitly asked on
      demand. This provides significant performance improvement
      for application with dynamic linking mode which has large
      number of modules.
      The feature can be turned on with:
      "settings set symbols.load-on-demand true"
      
      The feature works by creating a new SymbolFileOnDemand class for
      each module which wraps the actual SymbolFIle subclass as member
      variable. By default, most virtual methods on SymbolFileOnDemand are
      skipped so that it looks like there is no debug info for that module.
      But once the module's debug info is explicitly requested to
      be enabled (in the conditions mentioned below) SymbolFileOnDemand
      will allow all methods to pass through and forward to the actual SymbolFile
      which would hydrate module's debug info on-demand.
      
      In an internal benchmark, we are seeing more than 95% improvement
      for a 3000 modules application.
      
      Currently we are providing several ways to on demand hydrate
      a module's debug info:
      * Source line breakpoint: matching in supported files
      * Stack trace: resolving symbol context for an address
      * Symbolic breakpoint: symbol table match guided promotion
      * Global variable: symbol table match guided promotion
      
      In all above situations the module's debug info will be on-demand
      parsed and indexed.
      
      Some follow-ups for this feature:
      * Add a command that allows users to load debug info explicitly while using a
        new or existing command when this feature is enabled
      * Add settings for "never load any of these executables in Symbols On Demand"
        that takes a list of globs
      * Add settings for "always load the the debug info for executables in Symbols
        On Demand" that takes a list of globs
      * Add a new column in "image list" that shows up by default when Symbols On
        Demand is enable to show the status for each shlib like "not enabled for
        this", "debug info off" and "debug info on" (with a single character to
        short string, not the ones I just typed)
      
      Differential Revision: https://reviews.llvm.org/D121631
      7b81192d
    • Vasileios Porpodas's avatar
      [AArch64][NFC] Deleted llvm/test/Analysis/CostModel/AArch64/splat-load.ll test · 957ada41
      Vasileios Porpodas authored
      This test is no longer necessary as it is a subset of:
      llvm/test/Analysis/CostModel/AArch64/shuffle-load.ll
      
      Differential Revision: https://reviews.llvm.org/D124456
      957ada41
    • Matt Arsenault's avatar
      llvm-reduce: Simplify virtual register cloning · 7b57ef67
      Matt Arsenault authored
      Just clone all the virtual registers instead of looking for def
      operands. This preserves the register values used, simplifying the
      rest of the code. This avoids needing to expose the register map to
      target code.
      7b57ef67
    • Matt Arsenault's avatar
      llvm-reduce: Preserve frame index values when cloning function · a27b9ab3
      Matt Arsenault authored
      Previously the specific values used for fixed frame indexes was in
      reverse order in the cloned function from the original, and a map was
      used to adjust all frame indexes to the potentially new values. Insert
      the fixed objects in reverse to avoid this. This simplifies other
      code, since now we don't need to track down all frame indexes. This
      will allow targets that store frame indexes in MachineFunctionInfo to
      simply copy the values.
      
      Note this isn't directly observable in the test since the resulting
      MIR print/parse can shuffle the IDs around (in particular the final
      serialization implicitly strips out dead objects).
      a27b9ab3
    • Yi Zhang's avatar
      Support non identity layout map for reshape ops in MemRefToLLVM lowering · e1318078
      Yi Zhang authored
      This change borrows the ideas from `computeExpanded/CollapsedLayoutMap`
      and computes the dynamic strides at runtime for the memref descriptors.
      
      Differential Revision: https://reviews.llvm.org/D124001
      e1318078
    • Peter Klausler's avatar
      [flang] Get ppc64le build bot back up · e1836123
      Peter Klausler authored
      A recent change assumed that the native C++ "long double" maps to
      a Fortran data type; but this turns out to not be true for ppc64le,
      which uses "double-double" for "long double".
      
      This is a quick patch to get the ppc64le flang build bot back up.
      A better fix that either uses HostTypeExists<> or replaces "long double"
      with "ieee128_t" (or some other solution) is expected to follow soon.
      
      Differential Revision: https://reviews.llvm.org/D124423
      e1836123
    • Tanya Lattner's avatar
      6c1a0d52
  2. Apr 26, 2022