1. Mar 20, 2019
  2. Mar 19, 2019
    • Neil Henning's avatar
      [AMDGPU] Ban i8 min3 promotion. · e85f6bd6
      Neil Henning authored
      I found this really weird WWM-related case whereby through the WWM
      transformations our isel lowering was trying to promote 2 min's into a
      min3 for the i8 type, which our hardware doesn't support.
      
      The new min3_i8.ll test case would previously spew the error:
      
      PromoteIntegerResult #0: t69: i8 = SMIN3 t70, Constant:i8<0>, t68
      
      Before the simple fix to our isel lowering to not do it for i8 MVT's.
      
      Differential Revision: https://reviews.llvm.org/D59543
      
      llvm-svn: 356464
      e85f6bd6
    • Teresa Johnson's avatar
      [InstCombine] Add missing test for icmp transformation (NFC) · bda581b8
      Teresa Johnson authored
      This was split out of D59378. There was no testing for the EQ case in
      foldICmpWithDominatingICmp, add one here.
      
      llvm-svn: 356463
      bda581b8
    • Adrian Prantl's avatar
      Improve error handling for Clang module imports. · da8c0e4a
      Adrian Prantl authored
      rdar://problem/48883558
      
      Differential Revision: https://reviews.llvm.org/D59524
      
      llvm-svn: 356462
      da8c0e4a
    • Simon Atanasyan's avatar
      [mips] Fix crash on recursive using of .set · af40d437
      Simon Atanasyan authored
      Switch to the `MCParserUtils::parseAssignmentExpression` for parsing
      assignment expressions in the `.set` directive reduces code and allows
      to print an error message instead of crashing in case of incorrect
      recursive using of the `.set`.
      
      Fix for the bug https://bugs.llvm.org/show_bug.cgi?id=41053.
      
      Differential Revision: http://reviews.llvm.org/D59452
      
      llvm-svn: 356461
      af40d437
    • Markus Lavin's avatar
      [DebugInfo] Move test files added in r356451 · 00160e22
      Markus Lavin authored
      Moved the X86 dependant .ll tests added in r356451 from
      test/DebugInfo/Generic to test/DebugInfo/X86.
      
      llvm-svn: 356460
      00160e22
    • Pavel Labath's avatar
      Fix a "memset clearing an object of non-trivial type" warning in EmulateInstruction · 06453b06
      Pavel Labath authored
      This is a new warning which started appearing as of gcc-8. The Opcode
      class has a non-trivial constructor, so the idea of the warning is that
      code should use that to initialize the object instead of using memset
      (which can perturb class invariants set up by the constructor). In this
      case, the Opcode default constructor was already clearing the object's
      fields so we can just drop the memset call.
      
      While I'm touching the EmulateInstruction constructor, I also move the
      initialization of other members into the class declaration.
      
      llvm-svn: 356459
      06453b06
    • Aaron Ballman's avatar
      Ensure that const variables declared at namespace scope correctly have... · 165435ff
      Aaron Ballman authored
      Ensure that const variables declared at namespace scope correctly have external linkage when marked as dllexport and targeting the MSVC ABI.
      
      Patch thanks to Zahira Ammarguellat.
      
      llvm-svn: 356458
      165435ff
    • Kostya Kortchinsky's avatar
      [scudo][standalone] Add string utility functions · 7045c6f0
      Kostya Kortchinsky authored
      Summary:
      Add some string utility functions, notably to format strings, get
      lengths, convert a string to a number. Those functions will be
      used in reports and flags (coming up next). They were mostly borrowed
      from sanitizer_common.
      
      Make use of the string length function in a couple places in the
      platform code that was checked in with inlined version of it.
      
      Add some tests.
      
      Reviewers: morehouse, eugenis, vitalybuka, hctim
      
      Reviewed By: morehouse, vitalybuka
      
      Subscribers: mgorny, delcypher, jdoerfert, #sanitizers, llvm-commits
      
      Tags: #llvm, #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D59262
      
      llvm-svn: 356457
      7045c6f0
    • Simon Pilgrim's avatar
      [InstSimplify] SimplifyICmpInst - icmp eq/ne %X, undef -> undef · 8ee477a2
      Simon Pilgrim authored
      As discussed on PR41125 and D59363, we have a mismatch between icmp eq/ne cases with an undef operand:
      
      When the other operand is constant we fold to undef (handled in ConstantFoldCompareInstruction)
      When the other operand is non-constant we fold to a bool constant based on isTrueWhenEqual (handled in SimplifyICmpInst).
      
      Neither is really wrong, but this patch changes the logic in SimplifyICmpInst to consistently fold to undef.
      
      The NewGVN test change is annoying (as with most heavily reduced tests) but AFAICT I have kept the purpose of the test based on rL291968.
      
      Differential Revision: https://reviews.llvm.org/D59541
      
      llvm-svn: 356456
      8ee477a2
    • Gabor Marton's avatar
      [ASTImporter] Fix redecl failures of FunctionTemplateSpec · dd59d27a
      Gabor Marton authored
      Summary:
      Redecl chains of function template specializations are not handled well
      currently. We want to handle them similarly to functions, i.e. try to
      keep the structure of the original AST as much as possible. The aim is
      to not squash a prototype with a definition, rather we create both and
      put them in a redecl chain.
      
      Reviewers: a_sidorin, shafik, a.sidorin
      
      Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D58668
      
      llvm-svn: 356455
      dd59d27a
    • Petar Jovanovic's avatar
      [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags · 38a61873
      Petar Jovanovic authored
      Moving subprogram specific flags into DISPFlags makes IR code more readable.
      In addition, we provide free space in DIFlags for other
      'non-subprogram-specific' debug info flags.
      
      Patch by Djordje Todorovic.
      
      Differential Revision: https://reviews.llvm.org/D59288
      
      llvm-svn: 356454
      38a61873