1. May 19, 2017
  2. May 18, 2017
    • Krasimir Georgiev's avatar
      [clang-format] Fix MatchingOpeningBlockLineIndex computation · 9f5608a8
      Krasimir Georgiev authored
      Summary:
      Computed line index must be relative to the current 'parent' node, and
      thus use CurrentLines instead of Lines.
      
      Without this, a child line's MatchingOpeningBlockLineIndex is out of
      range of the parent's list of line, which can cause crash or unexpected
      behavior if this field is used in childs.
      
      Contributed by @Typz!
      
      Reviewers: krasimir, djasper
      
      Reviewed By: krasimir
      
      Subscribers: cfe-commits, klimek
      
      Differential Revision: https://reviews.llvm.org/D32524
      
      llvm-svn: 303353
      9f5608a8
    • Zachary Turner's avatar
      [COFF] Fix interaction between /DEBUG and /PDB · 8a750897
      Zachary Turner authored
      When /DEBUG is not specified, /PDB should be ignored.  When
      /DEBUG is specified, a PDB should be output regardless of
      whether or not /PDB is specified.  /PDB just overrides the
      default name.
      
      This patch implements this behavior, and adds some tests, while
      also removing a dead option /DEBUGPDB which was unused in any
      code.
      
      Differential Revision: https://reviews.llvm.org/D33302
      
      llvm-svn: 303352
      8a750897
    • Zachary Turner's avatar
      Fix some minor issues in PDB parsing library. · 5a83fb15
      Zachary Turner authored
      1) Until now I'd never seen a valid PDB where the DBI stream and
         the PDB Stream disagreed on the "Age" field.  Because of that,
         we had code to assert that they matched.  Recently though I was
         given a PDB where they disagreed, so this assumption has proven
         to be incorrect.  Remove this check.
      
      2) We were walking the entire list of hash values for types up front
         and then throwing away the values.  For large PDBs this was a
         significant slow down.  Remove this.
      
      With this patch, I can dump the list of all compilands from a
      1.5GB PDB file in just a few seconds.
      
      llvm-svn: 303351
      5a83fb15
    • Simon Dardis's avatar
      [compiler-rt][cmake] Build unit tests conditionally with _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE · 657899ba
      Simon Dardis authored
      The sanitizer library unit tests for libc can get a different definition
      of 'struct stat' to what the sanitizer library is built with for certain
      targets.
      
      For MIPS the size element of 'struct stat' is after a macro guarded
      explicit padding element.
      
      This patch resolves any possible inconsistency by adding the same
      _FILE_OFFSET_BITS=64 and _LARGE_SOURCE with the same
      conditions as the sanitizer library to the build flags for the unit tests.
      
      This resolves a recurring build failure on the MIPS buildbots due to
      'struct stat' defintion differences.
      
      Reviewers: slthakur
      
      Differential Revision: https://reviews.llvm.org/D33131
      
      llvm-svn: 303350
      657899ba
    • Anna Thomas's avatar
      [JumpThreading] Dont RAUW condition incorrectly · 7bca5915
      Anna Thomas authored
      Summary:
      We have a bug when RAUWing the condition if experimental.guard or assumes is a use of that
      condition. This is because LazyValueInfo may have used the guards/assumes to identify the
      value of the condition at the end of the block. RAUW replaces the uses
      at the guard/assume as well as uses before the guard/assume. Both of
      these are incorrect.
      For now, disable RAUW for conditions and fix the logic as a next
      step: https://reviews.llvm.org/D33257
      
      Reviewers: sanjoy, reames, trentxintong
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33279
      
      llvm-svn: 303349
      7bca5915
    • Pavel Labath's avatar
      Add Status -- llvm::Error glue · a24a3a30
      Pavel Labath authored
      Summary:
      This adds functions to convert between llvm::Error and Status classes.
      Posix errors in Status are represented as llvm::ECError, and the rest as
      llvm::StringError.
      
      For the conversion from Error to Status, ECError is again represented as
      a posix error in Status, while other errors are stored as generic errors
      and only the string value is preserved.
      
      Reviewers: zturner, jingham
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D33241
      
      llvm-svn: 303348
      a24a3a30
    • Sam Kolton's avatar
      [AMDGPU] SDWA operands should not intersect with potential MIs · ebfdaf73
      Sam Kolton authored
      Summary:
      There should be no intesection between SDWA operands and potential MIs. E.g.:
      ```
      v_and_b32 v0, 0xff, v1 -> src:v1 sel:BYTE_0
      v_and_b32 v2, 0xff, v0 -> src:v0 sel:BYTE_0
      v_add_u32 v3, v4, v2
      ```
      In that example it is possible that we would fold 2nd instruction into 3rd (v_add_u32_sdwa) and then try to fold 1st instruction into 2nd (that was already destroyed). So if SDWAOperand is also a potential MI then do not apply it.
      
      Reviewers: vpykhtin, arsenm
      
      Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye
      
      Differential Revision: https://reviews.llvm.org/D32804
      
      llvm-svn: 303347
      ebfdaf73
    • Guy Blank's avatar
      [MVT] add v1i1 MVT · d19632fa
      Guy Blank authored
      Adds the v1i1 MVT as a preparation for another commit (https://reviews.llvm.org/D32273)
      
      Differential Revision: https://reviews.llvm.org/D32540
      
      llvm-svn: 303346
      d19632fa