1. Sep 03, 2020
  2. Sep 02, 2020
    • Simon Pilgrim's avatar
      [X86][SSE] Fold vselect(pshufb,pshufb) -> or(pshufb,pshufb) · 888049b9
      Simon Pilgrim authored
      If the PSHUFBs have no other uses, then we can force the unselected elements to zero to OR them instead, avoiding both an extra mask load and a costly variable blend.
      
      Eventually we should try to bring this into shuffle combining, once we can more easily convert between shuffles + select patterns.
      888049b9
    • Ehsan Toosi's avatar
      [mlir] Extend BufferAssignmentTypeConverter with result conversion callbacks · 39cf83cc
      Ehsan Toosi authored
      In this PR, the users of BufferPlacement can configure
      BufferAssginmentTypeConverter. These new configurations would give the user more
      freedom in the process of converting function signature, and return and call
      operation conversions.
      
      These are the new features:
          - Accepting callback functions for decomposing types (i.e. 1 to N type
          conversion such as unpacking tuple types).
          - Defining ResultConversionKind for specifying whether a function result
          with a certain type should be appended to the function arguments list or
          should be kept as function result. (Usage:
          converter.setResultConversionKind<MemRefType>(AppendToArgumentList))
          - Accepting callback functions for composing or decomposing values (i.e. N
          to 1 and 1 to N value conversion).
      
      Differential Revision: https://reviews.llvm.org/D85133
      39cf83cc
    • Jordan Rupprecht's avatar
      [lldb/Host] Add missing proc states · c5aa63dd
      Jordan Rupprecht authored
      The /proc/<pid>/status parsing is missing a few cases:
      - Idle
      - Parked
      - Dead
      
      If we encounter an unknown proc state, this leads to an msan warning. In reality, we only check that the state != Zombie, so it doesn't really matter that we handle all cases, but handle them anyway (current list: [1]). Also explicitly set it to unknown if we encounter an unknown state. There will still be an msan warning if the proc entry has no `State:` line, but that should not happen.
      
      Use a StringSwitch to make the handling of proc states a little more compact.
      
      [1] https://github.com/torvalds/linux/blob/master/fs/proc/array.c
      
      Reviewed By: labath
      
      Differential Revision: https://reviews.llvm.org/D86818
      c5aa63dd