1. Mar 23, 2023
    • Craig Topper's avatar
      [RISCV] Add FallbackRegAltNameIndex to ABIRegAltName. · a67e989c
      Craig Topper authored
      Remove now redundant fake ABI names from vector registers.
      
      This also fixes a crash that occurs if you use fflags as an instruction
      operand in the assembly and use -debug. It's not a valid register
      for any instruction since this wouldn't be common. It doesn't have
      an ABI name so it crashes the register printing in the debug output.
      a67e989c
    • Craig Topper's avatar
      [RISCV] Convert segment registers to VR registers in RISCVMCInstLower. · 164b046e
      Craig Topper authored
      Similar to what we do for the LMUL>1 register classes. The printing
      is only working today because the segment registers have "ABI" names
      set to their base register name.
      164b046e
    • Luke Hutton's avatar
      [mlir][tosa] Canonicalize concatenate->slice sequence · 9e3ca798
      Luke Hutton authored
      
      
      Adds a canonicalizer for the concatenate->slice sequence where
      an output of slice can be replaced with an input of concatenate.
      
      This is useful in the context of operations with complex inputs
      and outputs that are legalized from a framework such as TFL.
      For example, a TFL graph (FFT->FFT) will be legalized to the
      following TOSA graph:
      
           <complex input>
               /     \
           slice    slice
               \     /
                 FFT
                /   \     -+
             concatenate   |
               /     \     |  Redundant
           slice    slice  |
               \     /    -+
                 FFT
               /     \
             concatenate
                  |
           <complex output>
      
      Concatenate and slice operations at the boundaries of the graph are
      useful as they maintain the correct correspondance of input/output
      tensors to the original TFL graph. However, consecutive
      complex operations will result in redundant concatenate->slice
      sequences which should be removed from the final TOSA graph.
      
      The canonicalization does not currently handle dynamic types.
      
      Signed-off-by: default avatarLuke Hutton <luke.hutton@arm.com>
      
      Reviewed By: rsuderman
      
      Differential Revision: https://reviews.llvm.org/D144545
      9e3ca798
    • Craig Topper's avatar
      [Constant] Inline ConstantInt::getSigned · 83e420c6
      Craig Topper authored
      ConstantInt::getSigned calls ConstantInt::get with the IsSigned flag set to true.
      That flag normally defaults to false.
      
      For always signed constants the code base is not consistent about whether
      it uses ConstantInt::getSigned or ConstantInt::get with IsSigned set to true.
      And it's not clear how to decide which way to use.
      
      By making getSigned inline, both ways should generate the same code in
      the end.
      
      Reviewed By: nikic
      
      Differential Revision: https://reviews.llvm.org/D146598
      83e420c6
    • Benjamin Maxwell's avatar
      [DebugInfo] Allow parsing line tables aligned to 4 or 8-byte boundaries · 8eb464f5
      Benjamin Maxwell authored
      This allows the DWARFDebugLine::SectionParser to try parsing line tables
      at 4 or 8-byte boundaries if the unaligned offset appears invalid. If
      aligning the offset does not reduce errors the offset is used unchanged.
      
      This is needed for llvm-dwarfdump to be able to extract the line tables
      (with --debug-lines) from binaries produced by certain compilers that
      like to align each line table in the .debug_line section. Note that this
      alignment does not seem to be invalid since the units do point to the
      correct line table offsets via the DW_AT_stmt_list attribute.
      
      Differential Revision: https://reviews.llvm.org/D143513
      8eb464f5
    • Thomas Lively's avatar
      [WebAssembly] Fix epilogue insertion for indirect tail calls · dd0bbae5
      Thomas Lively authored
      Previously epilogues were incorrectly inserted after indirect tail calls because
      they did not have the `isTerminator` property. Add that property and test that
      they get correct epilogues. To be safe, also add other properties that were
      defined for direct tail calls.
      
      Differential Revision: https://reviews.llvm.org/D146569
      dd0bbae5
    • Mark de Wever's avatar
      [libc++] Qualifies ptrdiff_t and max_align_t. · d8681356
      Mark de Wever authored
      This has been done using the following commands
        find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)ptrdiff_t)|\1std::\2|' \{} \;
        find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)max_align_t)|\1std::\2|' \{} \;
      
      The std module doesn't export declarations in the global namespaace.,
      This is a preparation for that module.
      
      Reviewed By: #libc, ldionne
      
      Differential Revision: https://reviews.llvm.org/D146550
      d8681356
    • Arthur Eubanks's avatar
      [InstSimplify] Actually use NewOps for calls in simplifyInstructionWithOperands · 3f23c7f5
      Arthur Eubanks authored
      Resolves a TODO.
      
      Reviewed By: nikic
      
      Differential Revision: https://reviews.llvm.org/D146599
      3f23c7f5
    • Thomas Lively's avatar
      [NFC][WebAssembly] Autogenerate test expectations for tailcall.ll · 05280876
      Thomas Lively authored
      A follow-on commit will add tests to this file and using the
      update_llc_test_checks script will make that easier.
      
      Differential Revision: https://reviews.llvm.org/D146568
      05280876
    • Caroline Concatto's avatar
      [AArch64] Add asm aliases for MOV, LDR, STR with predicate-as-counter · 65890469
      Caroline Concatto authored
      In the 2022-12 release of the A64 ISA it was updated that the assembler must
      also accept predicate-as-counter register names for the source predicate
      register and the destination predicate register for:
       * *MOV: Move predicate (unpredicated)*
       * *LDR (predicate): Load predicate register*
       * *STR (predicate): Store predicate register*
      
      Reviewed By: sdesmalen
      
      Differential Revision: https://reviews.llvm.org/D146311
      65890469
    • Luke Lau's avatar
      [RISCV][NFC] Make interleaved access test more vectorizable · 06f16232
      Luke Lau authored
      The previous test case stored the result of a deinterleaved load and add
      into the same source address, which resulted in some scatters which we
      weren't testing for and made the tests harder to understand.
      Store it at a separate address, which will make the tests easier to read
      when the cost model is changed after D145085 is landed
      
      Reviewed By: reames
      
      Differential Revision: https://reviews.llvm.org/D146442
      06f16232
    • Caleb Zulawski's avatar
      [ARM] Improve min/max vector reductions on Arm · 71dc3de5
      Caleb Zulawski authored
      This patch adds some more efficient lowering for vecreduce.min/max under NEON,
      using sequences of pairwise vpmin/vpmax to reduce to a single value.
      
      This nearly resolves issues such as #50466, #40981, #38190.
      
      Differential Revision: https://reviews.llvm.org/D146404
      71dc3de5
  2. Mar 22, 2023