1. May 05, 2020
  2. May 04, 2020
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] fix copies between 32 and 16 bit · c85eda74
      Stanislav Mekhanoshin authored
      This a hack to fix illegal 32 to 16 bit copies.
      The problem is when we make 16 bit subregs legal it creates
      a huge amount of failures which can only be resolved at once
      without a temporary hack like this.
      
      The next step is to change operands, instruction definitions
      and patterns until this hack is not needed.
      
      Differential Revision: https://reviews.llvm.org/D79119
      c85eda74
    • Stephen Neuendorffer's avatar
      [cmake] Ensure that LINK_LIBS are dependencies for object library targets · 8303b1f4
      Stephen Neuendorffer authored
      In MLIR, it is common for automatically generated headers to be included
      in many places.  To avoid tracking these dependencies explicitly in
      cmake, they are treated as part of a library which 'owns' the generated
      header.  Users of the generated header link against the owning library.
      However, object libraries don't actually 'link', so this dependence gets
      lost.  This patch adds an explicit dependence for these generated headers
      when creating object library targets to ensure that generated headers
      are appropriately generated
      
      Differential Revision: https://reviews.llvm.org/D79241
      8303b1f4
    • Louis Dionne's avatar
      [libc++] NFC: Remove outdated #if comment · d28f69d9
      Louis Dionne authored
      d28f69d9
    • Christopher Tetreault's avatar
      [SVE] Remove invalid usage of getNumElements in Instructions · 3b7f3d01
      Christopher Tetreault authored
      Summary:
      Remove invalid usage of VectorType::getNumElements in
      ShuffleVectorInst::isValidOperands identified by test case
      llvm::Analysis/ConstantFolding/vscale-shufflevector.ll. The tested
      conditions hold for both fixed width and scalable vectors; use
      getElementCount().
      
      Reviewers: efriedma, sdesmalen, c-rhodes, spatel
      
      Reviewed By: sdesmalen
      
      Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D79212
      3b7f3d01
    • Med Ismail Bennani's avatar
      [lldb/Host] Improve error messages on unowned read files · 01511741
      Med Ismail Bennani authored
      When trying to read a core file that is not owned by the user running lldb
      and that doesn't have read permission on the file, lldb shows a misleading
      error message:
      
      ```
      Unable to find process plug-in for core file
      ```
      
      This is due to the fact that currently, lldb doesn't check the file
      ownership. And when trying to to open and read a core file, the syscall
      fails, which prevents a process to be created.
      
      Since lldb already have a portable `open` syscall interface, lets take
      advantage of that and delegate the error handling to the syscall
      itself. This way, no matter if the file exists or if the user has proper
      ownership, lldb will always try to open the file, and behave accordingly
      to the error code returned.
      
      rdar://42630030
      
      https://reviews.llvm.org/D78712
      
      
      
      Signed-off-by: default avatarMed Ismail Bennani <medismail.bennani@gmail.com>
      01511741
    • Nicolas Vasilache's avatar
      [mlir][Linalg] Mostly NFC - Refactor Linalg patterns and transformations. · 307cfdf5
      Nicolas Vasilache authored
      Linalg transformations are currently exposed as DRRs.
      Unfortunately RewriterGen does not play well with the line of work on named linalg ops which require variadic operands and results.
      Additionally, DRR is arguably not the right abstraction to expose compositions of such patterns that don't rely on SSA use-def semantics.
      
      This revision abandons DRRs and exposes manually written C++ patterns.
      
      Refactorings and cleanups are performed to uniformize APIs.
      This refactoring will allow replacing the currently manually specified Linalg named ops.
      
      A collateral victim of this refactoring is the `tileAndFuse` DRR, and the one associated test, which will be revived at a later time.
      
      Lastly, the following 2 tests do not add value and are altered:
      - a dot_perm tile + interchange test does not test anything new and is removed
      - a dot tile + lower to loops does not need 2-D tiling and is trimmed.
      307cfdf5
    • Fangrui Song's avatar
      [ELF] Don't advance sh_offset for an empty section whose PT_LOAD is removed (due to p_memsz=0) · c49f83b6
      Fangrui Song authored
      removeEmptyPTLoad() removes empty (p_memsz=0) PT_LOAD segments.  In
      assignFileOffsets(), setFileOffset() unnecessarily advances file offsets
      for containing empty sections.
      
      This is exposed by arm Linux kernel's multi_v5_defconfig
      (see https://bugs.llvm.org/show_bug.cgi?id=45632)
      
      ```
      ld.lld (max-page-size=65536):
        [34] .init.data        PROGBITS        c0c24000 c34000 0128ac 00  WA  0   0 4096
        [35] .text_itcm        PROGBITS        fffe0000 c50000 000000 00  WA  0   0  1
        [36] .data_dtcm        PROGBITS        fffe8000 c58000 000000 00  WA  0   0  1
        [37] .data             PROGBITS        c0c38000 c58000 0647a0 00  WA  0   0 32
      
      arm-linux-gnueabi-ld (max-page-size=65536):
        [23] .init.data        PROGBITS        c0c12000 c22000 0128ac 00  WA  0   0 4096
        [24] .text_itcm        PROGBITS        fffe0000 ca2558 000000 00   W  0   0  1
        [25] .data_dtcm        PROGBITS        fffe8000 ca2558 000000 00   W  0   0  1
        [26] .data             PROGBITS        c0c26000 c36000 0647a0 00  WA  0   0 32
      ```
      
      This patch clears OutputSection::ptLoad if ptLoad is removed by
      removeEmptyPTLoad(). Conceptually this removes "dangling" references.
      
      Reviewed By: psmith
      
      Differential Revision: https://reviews.llvm.org/D79254
      c49f83b6
    • Louis Dionne's avatar
    • Pete Steinfeld's avatar
      [flang] Fixed a crash · b6f1bad6
      Pete Steinfeld authored
      Summary:
      I found a small test case that caused a crash when derived type
      definitions have parameters without definitions.
      
      Reviewers: tskeith, klausler, DavidTruby
      
      Subscribers: llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D79282
      b6f1bad6
    • Melanie Blower's avatar
    • Simon Pilgrim's avatar
      [InstCombine] Fold (mul(abs(x),abs(x))) -> (mul(x,x)) (PR39476) · 94006143
      Simon Pilgrim authored
      This patch adds support for discarding integer absolutes (abs + nabs variants) from self-multiplications.
      
      ABS Alive2: http://volta.cs.utah.edu:8080/z/rwcc8W
      NABS Alive2: http://volta.cs.utah.edu:8080/z/jZXUwQ
      
      This is an InstCombine version of D79304 - I'm not sure yet if we'll need that after this.
      
      Reviewed By: @lebedev.ri and @xbolva00
      
      Differential Revision: https://reviews.llvm.org/D79319
      94006143