1. Sep 03, 2018
  2. Sep 02, 2018
  3. Sep 01, 2018
    • Sanjay Patel's avatar
      [InstCombine] simplify code for 'or' fold · 099b1a4b
      Sanjay Patel authored
      This is no-outwardly-visible-change intended, so no test.
      But the code is smaller and more efficient. The check for
      a 'not' op is intended to avoid the expensive value tracking
      call when it should not be necessary, and it might prevent
      infinite looping when we resurrect:
      rL300977
      
      llvm-svn: 341280
      099b1a4b
    • Dylan McKay's avatar
      [AVR] Redefine the 'LSL' instruction as an alias of 'ADD' · 45425867
      Dylan McKay authored
      The 'LSL Rd' instruction is equivalent to 'ADD Rd, Rd'.
      
      llvm-svn: 341278
      45425867
    • Dylan McKay's avatar
      [AVR] Redefine the 'SBR' instruction as an alias · 97daa142
      Dylan McKay authored
      This fixes a TableGen warning about duplicate bit patterns.
      
      SBR
      ===
      
      This is an alias of 'ORI Rd, K'.
      
      llvm-svn: 341277
      97daa142
    • Dylan McKay's avatar
      [AVR] Define the TST instruction as an alias of AND · d1180243
      Dylan McKay authored
      The 'tst Rd' instruction is equivalent to 'and Rd, Rd'.
      
      llvm-svn: 341276
      d1180243
    • Dylan McKay's avatar
      [AVR] Define the ROL instruction as an alias of ADC · 8b0f9d2e
      Dylan McKay authored
      The 'rol Rd' instruction is equivalent to 'adc Rd'.
      
      This caused compile warnings from tablegen because of conflicting bits
      shared between each instruction.
      
      llvm-svn: 341275
      8b0f9d2e
    • Pavel Labath's avatar
      Ignore unicode decode errors in test suite's encoded_file class · 89d2245a
      Pavel Labath authored
      These happen in a couple of tests when lldb tries to pretty print a
      const char * variable in the inferior which points to garbage. Instead,
      we have the python replace the invalid sequences with the unicode
      replacement character.
      
      llvm-svn: 341274
      89d2245a
    • Fangrui Song's avatar
      [clangd] Fix many typos. NFC · 399943bc
      Fangrui Song authored
      llvm-svn: 341273
      399943bc
    • Tom Stellard's avatar
      AMDGPU/GlobalISel: Define instruction mapping for G_SELECT · ffc6bd6f
      Tom Stellard authored
      Reviewers: arsenm
      
      Reviewed By: arsenm
      
      Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, dstuttard, tpr, llvm-commits, t-tye
      
      Differential Revision: https://reviews.llvm.org/D49737
      
      llvm-svn: 341271
      ffc6bd6f
    • Sanjin Sijaric's avatar
      Make HasWinCFI a plain bool instead of Optional<bool> · 61ddb7df
      Sanjin Sijaric authored
      Summary:
      Reid suggested making HasWinCFI a plain bool defaulting to false in D50288.
      
      It's needed in order to add HasWinCFI to MIRPrinter.  Otherwise, we'll get the
      assertion:
      
      HasWinCFI.hasValue() && "HasWinCFI not set yet!"'
      
      Also, a few ARM64 Windows test cases will fail with the same assert if the ARM64
      MCLayer part of EH work (D50166) goes in before the frame lowering part that
      sets HasWinCFI (D50288 as of now).
      
      Reviewers: rnk, mstorsjo, hans, javed.absar
      
      Reviewed By: rnk
      
      Subscribers: kristof.beyls, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D51560
      
      llvm-svn: 341270
      61ddb7df
    • Zhaoshi Zheng's avatar
      [Constant Hoisting] Hoisting Constant GEP Expressions · f5297fb2
      Zhaoshi Zheng authored
      Leverage existing logic in constant hoisting pass to transform constant GEP
      expressions sharing the same base global variable. Multi-dimensional GEPs are
      rewritten into single-dimensional GEPs.
      
      Differential Revision: https://reviews.llvm.org/D51396
      
      llvm-svn: 341269
      f5297fb2
    • Frederic Riss's avatar
      File completion bugfix · 78a10a7a
      Frederic Riss authored
      If you tried to complete somwthing like ~/., lldb would come up with a lot
      of non-existent filenames by concatenating every exisitng file in the directory
      with an initial '.'.
      
      This was due to a workaround for an llvm::fs::path::filename behavior that
      was not applied selectively enough.
      
      llvm-svn: 341268
      78a10a7a
    • Jessica Paquette's avatar
      Fix typo in size remarks for module passes · a69696dc
      Jessica Paquette authored
      ModuleCount = InstrCount was incorrect. It should have been
      InstrCount = ModuleCount. This was making it emit an extra, incorrect remark
      for Print Module IR.
      
      The test didn't catch this, because it didn't ensure that the only remark
      output was from the desired pass. So, it was possible to have an extra remark
      come through and not fail. Updated the test so that we ensure that the last
      remark that's output comes from the desired pass. This is done by ensuring
      that whatever is being read after the last remark is YAML output rather than
      some incorrect garbage.
      
      llvm-svn: 341267
      a69696dc
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Split v32i32 loads · 44451b33
      Stanislav Mekhanoshin authored
      Differential Revision: https://reviews.llvm.org/D51555
      
      llvm-svn: 341266
      44451b33
    • Craig Topper's avatar
      [X86] Add ktest intrinsics to match gcc and icc. · d88f76a8
      Craig Topper authored
      These aren't documented in the Intel Intrinsics Guide, but are supported by gcc and icc.
      
      Includes these intrinsics:
      _ktestc_mask8_u8, _ktestz_mask8_u8, _ktest_mask8_u8
      _ktestc_mask16_u8, _ktestz_mask16_u8, _ktest_mask16_u8
      _ktestc_mask32_u8, _ktestz_mask32_u8, _ktest_mask32_u8
      _ktestc_mask64_u8, _ktestz_mask64_u8, _ktest_mask64_u8
      
      llvm-svn: 341265
      d88f76a8
    • Krzysztof Parzyszek's avatar
      [Hexagon] Don't access non-existent instructions · 4cef4629
      Krzysztof Parzyszek authored
      llvm-svn: 341264
      4cef4629
    • Matthias Braun's avatar
      Revamp test-suite documentation · 4f340e97
      Matthias Braun authored
      - Remove duplication: Both TestingGuide and TestSuiteMakefileGuide
        would give a similar overview over the test-suite.
      - Present cmake/lit as the default/normal way of running the test-suite:
      - Move information about the cmake/lit testsuite into the new
        TestSuiteGuide.rst file. Mark the remaining information in
        TestSuiteMakefilesGuide.rst as deprecated.
      - General simplification and shorting of language.
      - Remove paragraphs about tests known to fail as everything should pass
        nowadays.
      - Remove paragraph about zlib requirement; it's not required anymore
        since we copied a zlib source snapshot into the test-suite.
      - Remove paragraph about comparison with "native compiler". Correctness is
        always checked against reference outputs nowadays.
      - Change cmake/lit quickstart section to recommend `pip` for installing
        lit and use `CMAKE_C_COMPILER` and a cache file in the example as that
        is what most people will end up doing anyway. Also a section about
        compare.py to quickstart.
      - Document `Bitcode` and `MicroBenchmarks` directories.
      - Add section with commonly used cmake configuration options.
      - Add section about showing and comparing result files via compare.py.
      - Add section about using external benchmark suites.
      - Add section about using custom benchmark suites.
      - Add section about profile guided optimization.
      - Add section about cross-compilation and running on external devices.
      
      Differential Revision: https://reviews.llvm.org/D51465
      
      llvm-svn: 341260
      4f340e97
    • Craig Topper's avatar
      [X86] Add intrinsics for KTEST instructions. · caf66727
      Craig Topper authored
      These intrinsics use the same implementation as PTEST intrinsics, but use vXi1 vectors.
      
      New clang builtins will be accompanying them shortly.
      
      llvm-svn: 341259
      caf66727