1. Mar 23, 2018
    • Rafael Espindola's avatar
      Make the debug info in some tests more realistic. · 78fad32d
      Rafael Espindola authored
      Currently lld just parses the .debug_line section assuming that there
      is only one compile unit. That assumption is false (PR36793).
      
      I have a patch that changes lld to iterate over the compile units and
      parse the portions of the .debug_line they point to (which fixes
      PR36793).
      
      A problem is that we will then need a compiler unit pointing to
      .debug_line for lld to see it.
      
      It seems like bfd has the same restriction.
      
      This patch updates existing tests to add a minimal compile unit so
      that they still work with PR36793 fixed.
      
      llvm-svn: 328215
      78fad32d
    • Matt Morehouse's avatar
      [SimplifyCFG] Create attribute for fuzzing-specific optimizations. · 236cdaf8
      Matt Morehouse authored
      Summary:
      When building with libFuzzer, converting control flow to selects or
      obscuring the original operands of CMPs reduces the effectiveness of
      libFuzzer's heuristics.
      
      This patch provides an attribute to disable or modify certain optimizations
      for optimal fuzzing signal.
      
      Provides a less aggressive alternative to https://reviews.llvm.org/D44057.
      
      Reviewers: vitalybuka, davide, arsenm, hfinkel
      
      Reviewed By: vitalybuka
      
      Subscribers: junbuml, mehdi_amini, wdng, javed.absar, hiraditya, llvm-commits, kcc
      
      Differential Revision: https://reviews.llvm.org/D44232
      
      llvm-svn: 328214
      236cdaf8
    • Artem Belevich's avatar
      [CUDA] add REQUIRES fields for CUDA variants of LTO tests. · 4c86af75
      Artem Belevich authored
      Also relax checking for nvptx triple. This should avoid test failure if
      the test is executed on 32-bit platform.
      
      llvm-svn: 328213
      4c86af75
    • Alexey Bataev's avatar
      [DWARF] Add EmitDwarfOffset function, NFC. · 07254641
      Alexey Bataev authored
      Added EmitDwarfOffset function after discussion with Eric Christofer.
      
      llvm-svn: 328212
      07254641
    • Saleem Abdulrasool's avatar
      vim: rename `singlethread` to `syncscope` · e44c372a
      Saleem Abdulrasool authored
      SVN r307722 renamed the keyword from `singlethread` to `syncscope`.
      Update the syntax file accordingly.
      
      llvm-svn: 328211
      e44c372a
    • Anna Thomas's avatar
      [LoopPredication] Add profitability check based on BPI · 9b1176b0
      Anna Thomas authored
      Summary:
      LoopPredication is not profitable when the loop is known to always exit
      through some block other than the latch block.
      A coarse grained latch check can cause loop predication to predicate the
      loop, and unconditionally deoptimize.
      
      However, without predicating the loop, the guard may never fail within the
      loop during the dynamic execution because the non-latch loop termination
      condition exits the loop before the latch condition causes the loop to
      exit.
      We teach LP about this using BranchProfileInfo pass.
      
      Reviewers: apilipenko, skatkov, mkazantsev, reames
      
      Reviewed by: skatkov
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D44667
      
      llvm-svn: 328210
      9b1176b0
  2. Mar 22, 2018