Skip to content
  1. Jun 02, 2019
  2. Jun 01, 2019
  3. May 31, 2019
    • Nick Desaulniers's avatar
      [Bugpoint] fix another use-after-move. NFC · 8b1f64f6
      Nick Desaulniers authored
      Summary:
      This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
      7".
      
      These statements are order independent, short of the use-after-move.
      
      Reviewers: echristo, srhines, RKSimon
      
      Reviewed By: RKSimon
      
      Subscribers: dblaikie, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D62114
      
      llvm-svn: 362267
      8b1f64f6
    • Nick Desaulniers's avatar
      [RegisterCoalescer] fix potential use of undef value. NFC · 103bd108
      Nick Desaulniers authored
      Summary:
      Fixes a warning produced from scan-build (llvm.org/reports/scan-build/),
      further warnings found by annotation isMoveInstr [[nodiscard]].
      
      isMoveInstr potentially does not assign to its parameters, so if they
      were uninitialized, they will potentially stay uninitialized.  It seems
      most call sites pass references to uninitialized values, then use them
      without checking the return value.
      
      Reviewers: wmi
      
      Reviewed By: wmi
      
      Subscribers: MatzeB, qcolombet, hiraditya, tpr, llvm-commits, srhines
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D62109
      
      llvm-svn: 362265
      103bd108
    • Reid Kleckner's avatar
      [codeview] Fix inline line table accuracy for discontiguous segments · e98cf5fe
      Reid Kleckner authored
      After improving the inline line table dumper in llvm-pdbutil and looking
      at MSVC's inline line tables, it is clear that setting the length of the
      inlined code region does not update the code offset. This means that the
      delta to the beginning of a new discontiguous inlined code region should
      be calculated relative to the last code offset, excluding the length.
      Implementing this is a one line fix for MC: simply don't update
      LastLabel.
      
      While I'm updating these test cases, switch them to use llvm-objdump -d
      and llvm-pdbutil. This allows us to show offsets of each instruction and
      correlate the line table offsets to the actual code.
      
      llvm-svn: 362264
      e98cf5fe
    • Nikita Popov's avatar
      Reapply [CVP] Simplify non-overflowing saturating add/sub · 7bafae55
      Nikita Popov authored
      If we can determine that a saturating add/sub will not overflow based
      on range analysis, convert it into a simple binary operation. This is
      a sibling transform to the existing with.overflow handling.
      
      Reapplying this with an additional check that the saturating intrinsic
      has integer type, as LVI currently does not support vector types.
      
      Differential Revision: https://reviews.llvm.org/D62703
      
      llvm-svn: 362263
      7bafae55
Loading