1. Jan 19, 2017
    • Justin Bogner's avatar
      cmake: Only sanitize use-after-scope if the host compiler supports it · 2ceeb30e
      Justin Bogner authored
      In r292256, we started adding -fsanitize-use-after-scope when using
      the address sanitizer, but that flag wasn't always available. This
      fixes the config to only add the flag if the host compiler supports
      it.
      
      llvm-svn: 292423
      2ceeb30e
    • Evandro Menezes's avatar
      [AArch64] Generate literals by the little end · 7960b2e1
      Evandro Menezes authored
      ARM seems to prefer that long literals be formed from their little end in
      order to promote the fusion of the instrs pairs MOV/MOVK and MOVK/MOVK on
      Cortex A57 and others (v.  "Cortex A57 Software Optimisation Guide", section
      4.14).
      
      Differential revision: https://reviews.llvm.org/D28697
      
      llvm-svn: 292422
      7960b2e1
    • Davide Italiano's avatar
      [NewGVN] We don't use postdom info anymore. Update. · bca9d733
      Davide Italiano authored
      Differential Revision:  https://reviews.llvm.org/D28842
      
      llvm-svn: 292421
      bca9d733
    • Mehdi Amini's avatar
      [ThinLTO] Add a recursive step in Metadata lazy-loading · 67d2cc1f
      Mehdi Amini authored
      Summary:
      Without this, we're stressing the RAUW of unique nodes,
      which is a costly operation. This is intended to limit
      the number of RAUW, and is very effective on the total
      link-time of opt with ThinLTO, before:
      
        real 4m4.587s  user 15m3.401s  sys 0m23.616s
      
      after:
      
        real 3m25.261s user 12m22.132s sys 0m24.152s
      
      Reviewers: tejohnson, pcc
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D28751
      
      llvm-svn: 292420
      67d2cc1f
    • Arpith Chacko Jacob's avatar
      [OpenMP] Codegen support for 'target parallel' on the host. · 19b911cb
      Arpith Chacko Jacob authored
      This patch adds support for codegen of 'target parallel' on the host.
      It is also the first combined directive that requires two or more
      captured statements.  Support for this functionality is included in
      the patch.
      
      A combined directive such as 'target parallel' has two captured
      statements, one for the 'target' and the other for the 'parallel'
      region.  Two captured statements are required because each has
      different implicit parameters (see SemaOpenMP.cpp).  For example,
      the 'parallel' has 'global_tid' and 'bound_tid' while the 'target'
      does not.  The patch adds support for handling multiple captured
      statements based on the combined directive.
      
      When codegen'ing the 'target parallel' directive, the 'target'
      outlined function is created using the outer captured statement
      and the 'parallel' outlined function is created using the inner
      captured statement.
      
      Reviewers: ABataev
      Differential Revision: https://reviews.llvm.org/D28753
      
      llvm-svn: 292419
      19b911cb
    • Jonathan Roelofs's avatar
      Revert r286788 · 8829e961
      Jonathan Roelofs authored
      The Itanium ABI [1] specifies that __cxa_demangle accept either:
      
         1) symbol names, which start with "_Z"
         2) type manglings, which do not start with "_Z"
      
      r286788 erroneously assumes that it should only handle symbols, so this patch
      reverts it and adds a counterexample to the testcase.
      
      1: https://mentorembedded.github.io/cxx-abi/abi.html#demangler
      
      
      Reviewers: zygoloid, EricWF
      llvm-svn: 292418
      8829e961
    • Graydon Hoare's avatar
      [lit] Support sharding testsuites, for parallel execution. · ae5d7bb4
      Graydon Hoare authored
      Summary:
      This change equips lit.py with two new options, --num-shards=M and
      --run-shard=N (set by default from env vars LIT_NUM_SHARDS and LIT_RUN_SHARD).
      
      The options must be used together, and N must be in 1..M.
      
      Together these options effect only test selection: they partition the testsuite
      into M equal-sized "shards", then select only the Nth shard. They can be used
      in a cluster of test machines to achieve a very crude (static) form of
      parallelism, with minimal configuration work.
      
      Reviewers: modocache, ddunbar
      
      Reviewed By: ddunbar
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D28789
      
      llvm-svn: 292417
      ae5d7bb4
    • Alexey Bataev's avatar
      [SLP] Add a tests for a fix for PR30787. · f86cca1a
      Alexey Bataev authored
      Add a test for PR30787: Failure to beneficially vectorize 'copyable'
      elements in integer binary ops.
      
      llvm-svn: 292416
      f86cca1a
    • Ehsan Akhgari's avatar
      [clang-tidy] Add -extra-arg and -extra-arg-before to run-clang-tidy.py · 221ab77f
      Ehsan Akhgari authored
      Summary:
      These flags allow specifying extra arguments to the tool's command
      line which don't appear in the compilation database.
      
      Reviewers: alexfh
      
      Differential Revision: https://reviews.llvm.org/D28334
      
      llvm-svn: 292415
      221ab77f
    • Pavel Labath's avatar
      Fix new Log unit test · c69d0a20
      Pavel Labath authored
      the test was flaky because I specified the format string for the process id
      incorrectly. This should fix it.
      
      llvm-svn: 292414
      c69d0a20
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Do not allow register coalescer to create big superregs · a4e63ead
      Stanislav Mekhanoshin authored
      Limit register coalescer by not allowing it to artificially increase
      size of registers beyond dword. Such super-registers are in fact
      register sequences and not distinct HW registers.
      
      With more super-regs we would need to allocate adjacent registers
      and constraint regalloc more than needed. Moreover, our super
      registers are overlapping. For instance we have VGPR0_VGPR1_VGPR2,
      VGPR1_VGPR2_VGPR3, VGPR2_VGPR3_VGPR4 etc, which complicates registers
      allocation even more, resulting in excessive spilling.
      
      Differential Revision: https://reviews.llvm.org/D28782
      
      llvm-svn: 292413
      a4e63ead
    • Justin Bogner's avatar
      GlobalISel: Implement narrowing for G_STORE · fde01046
      Justin Bogner authored
      Legalize stores of types that are too wide by breaking them up into
      sequences of smaller stores.
      
      llvm-svn: 292412
      fde01046
    • Justin Bogner's avatar
      GlobalISel: Correct copy-pasted comment. NFC · cb60161a
      Justin Bogner authored
      llvm-svn: 292411
      cb60161a
    • Kostya Kortchinsky's avatar
      [scudo] Refactor of CRC32 and ARM runtime CRC32 detection · b39dff45
      Kostya Kortchinsky authored
      Summary:
      ARM & AArch64 runtime detection for hardware support of CRC32 has been added
      via check of the AT_HWVAL auxiliary vector.
      
      Following Michal's suggestions in D28417, the CRC32 code has been further
      changed and looks better now. When compiled with full relro (which is strongly
      suggested to benefit from additional hardening), the weak symbol for
      computeHardwareCRC32 is read-only and the assembly generated is fairly clean
      and straight forward. As suggested, an additional optimization is to skip
      the runtime check if SSE 4.2 has been enabled globally, as opposed to only
      for scudo_crc32.cpp.
      
      scudo_crc32.h has no purpose anymore and was removed.
      
      Reviewers: alekseyshl, kcc, rengolin, mgorny, phosek
      
      Reviewed By: rengolin, mgorny
      
      Subscribers: aemerson, rengolin, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D28574
      
      llvm-svn: 292409
      b39dff45
    • Teresa Johnson's avatar
      Don't create a comdat group for a dropped def with initializer · 2d384ac3
      Teresa Johnson authored
      Non-prevailing weak/linkonce odr symbols will be dropped by ThinLTO to
      available_externally when possible. If they had an initializer in the
      global_ctors list, a comdat group was being created. This code
      already had logic to skip available_externally defs, but now the
      EliminateAvailableExternally pass will drop these symbols to
      declarations earlier. Change the check to skip all declarations for
      linker (which includes available_externally along with declarations).
      
      Reviewers: mehdi_amini
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D28737
      
      llvm-svn: 292408
      2d384ac3
    • Kirill Bobyrev's avatar
      Revert 292404 due to buildbot failures. · 6afbaf09
      Kirill Bobyrev authored
      llvm-svn: 292407
      6afbaf09
    • Benjamin Kramer's avatar
      [ASTUnit] Reset diag state when creating the ASTUnit. · 8de9c9b0
      Benjamin Kramer authored
      A client could call this with a dirty diagnostic engine, don't crash.
      
      llvm-svn: 292406
      8de9c9b0
    • Benjamin Kramer's avatar
      [include-fixer] Don't return a correction if the header insertion failed. · 1d3a91a6
      Benjamin Kramer authored
      This is could happen in cases involving macros and we don't want to
      return an invalid fixit for it or a confusing error message with no
      fixit.
      
      llvm-svn: 292405
      1d3a91a6
    • Kirill Bobyrev's avatar
      [X86] Minor code cleanup to fix several clang-tidy warnings. NFC · 9ad06dbe
      Kirill Bobyrev authored
      llvm-svn: 292404
      9ad06dbe
  2. Jan 18, 2017