1. Aug 27, 2020
  2. Aug 26, 2020
    • Sjoerd Meijer's avatar
      [LV] Fallback strategies if tail-folding fails · bda8fbe2
      Sjoerd Meijer authored
      This implements 2 different vectorisation fallback strategies if tail-folding
      fails: 1) don't vectorise at all, or 2) vectorise using a scalar epilogue. This
      can be controlled with option -prefer-predicate-over-epilogue, that has been
      changed to take a numeric value corresponding to the tail-folding preference
      and preferred fallback.
      
      Patch by: Pierre van Houtryve, Sjoerd Meijer.
      
      Differential Revision: https://reviews.llvm.org/D79783
      bda8fbe2
    • Jeremy Morse's avatar
      [LiveDebugValues][NFC] Add instr-ref tests, adapt old tests · 60db26a6
      Jeremy Morse authored
      This patch adds a few tests in DebugInfo/MIR/InstrRef/ of interesting
      behaviour that the instruction referencing implementation of
      LiveDebugValues has. Mostly, these tests exist to ensure that if you
      give the "-experimental-debug-variable-locations" command line switch,
      the right implementation runs; and to ensure it behaves the same way as
      the VarLoc LiveDebugValues implementation.
      
      I've also touched roughly 30 other tests, purely to make the tests less
      rigid about what output to accept. DBG_VALUE instructions are usually
      printed with a trailing !debug-location indicating its scope:
      
        !debug-location !1234
      
      However InstrRefBasedLDV produces new DebugLoc instances on the fly,
      meaning there sometimes isn't a numbered node when they're printed,
      making the output:
      
        !debug-location !DILocation(line: 0, blah blah)
      
      Which causes a ton of these tests to fail. This patch removes checks for
      that final part of each DBG_VALUE instruction. None of them appear to
      be actually checking the scope is correct, just that it's present, so
      I don't believe there's any loss in coverage here.
      
      Differential Revision: https://reviews.llvm.org/D83054
      60db26a6