1. Sep 30, 2021
    • Quinn Pham's avatar
      [PowerPC] swdiv builtins for XL compatibility · 67a3d1e2
      Quinn Pham authored
      This patch is in a series of patches to provide builtins for compatibility with
      the XL compiler. This patch implements the software divide builtin as
      wrappers for a floating point divide. XL provided these builtins because it
      didn't produce software estimates by default at `-Ofast`. When compiled
      with `-Ofast` these builtins will produce the software estimate for divide.
      
      Reviewed By: #powerpc, nemanjai
      
      Differential Revision: https://reviews.llvm.org/D106959
      67a3d1e2
    • Michael Kruse's avatar
      [llvm-reduce] Reduce metadata references. · d9562a8e
      Michael Kruse authored
      The ReduceMetadata pass before this patch removed metadata on a per-MDNode (or NamedMDNode) basis. Either all references to an MDNode are kept, or all of them are removed. However, MDNodes are uniqued, meaning that references to MDNodes with the same data become references to the same MDNodes. As a consequence, e.g. tbaa references to the same type will all have the same MDNode reference and hence make it impossible to reduce only keeping metadata on those memory access for which they are interesting.
      Moreover, MDNodes can also be referenced by some intrinsics or other MDNodes. These references were not considered for removal leading to the possibility that MDNodes are not actually removed even if selected to be removed by the oracle.
      
      This patch changes ReduceMetadata to reduces based on removable metadata references instead. MDNodes without references implicitly dropped anyway. References by intrinsic calls should be removed by ReduceOperands or ReduceInstructions. References in other MDNodes cannot be removed as it would violate the immutability of MDNodes.
      
      Additionally, ReduceMetadata pass before this patch used `setMetadata(I, NULL)` to remove references, where `I` is the index in the array returned by `getAllMetadata`. However, `setMetadata` expects a MDKind (such as `MD_tbaa`) as first argument. `getAllMetadata` does not return those in consecutive order (otherwise it would not need to be a `std::pair` with `first` representing the MDKind).
      
      Reviewed By: aeubanks, swamulism
      
      Differential Revision: https://reviews.llvm.org/D110534
      d9562a8e
    • Stuart Brady's avatar
      [OpenCL][NFC] Refactor vloada_half and vstorea_half decls · 26db178c
      Stuart Brady authored
      Group them together with the vload_half and vstore_half decls for
      simplicity.
      
      Reviewed By: svenvh
      
      Differential Revision: https://reviews.llvm.org/D110636
      26db178c
    • Dhruva Chakrabarti's avatar
      [libomptarget] [amdgpu] After a kernel dispatch packet is published, its... · 62262702
      Dhruva Chakrabarti authored
      [libomptarget] [amdgpu] After a kernel dispatch packet is published, its contents must not be accessed.
      
      Fixes: SWDEV-275232 (With contributions from Ammar Elwazir, Laurent Morichetti, and Tony Tye)
      
      The current code is racy. After the packet is submitted, the GPU will increment the read index. If this wraps around before the memory is read from it'll refer to a signal from an unrelated packet. Change avoids reading from the packet post-submission.
      
      Reviewed By: JonChesterfield
      
      Differential Revision: https://reviews.llvm.org/D110679
      62262702
    • Eric Schweitz's avatar
      [fir][NFC] Update fir.iterate_while op · 6e2afdb7
      Eric Schweitz authored
      
      
      Add getFinalValueAttrName() and remove specified number of
      inlined elements for SmallVector. This patch is mainly motivated
      to help the upstreaming effort.
      
      This patch is part of the upstreaming effort from fir-dev branch.
      
      Co-authored-by: default avatarJean Perier <jperier@nvidia.com>
      Co-authored-by: default avatarValentin Clement <clementval@gmail.com>
      
      Reviewed By: kiranchandramohan
      
      Differential Revision: https://reviews.llvm.org/D110710
      6e2afdb7
    • Kazu Hirata's avatar
      [AArch64] Remove redundant declaration createAArch64ObjectTargetStreamer (NFC) · 9a640a1c
      Kazu Hirata authored
      Note that createAArch64ObjectTargetStreamer is declared in
      AArch64TargetStreamer.h and defined in AArch64TargetStreamer.cpp.
      
      Identified with readability-redundant-declaration.
      9a640a1c
  2. Sep 29, 2021