Skip to content
  1. Oct 18, 2017
    • Vlad Tsyrklevich's avatar
      Statically link llvm-cfi-verify's libraries. · 4dc1c973
      Vlad Tsyrklevich authored
      Summary:
      llvm-cfi-verify (D38379) introduced a potential build failure when compiling with `-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON`. Specific versions of cmake seem to treat the `add_subdirectory()` rule differently. It seems as if old versions of cmake BFS these rules, adding them to the fringe for expansion later. Newer versions of cmake seem to immediately execute CMakeFiles that are present in this subdirectory.
      
      If the subdirectory is expanded through the fringe, the globbing resultant from `llvm_add_implicit_projects()` from `cmake/modules/AddLLVM.cmake:1012` means that `tools/llvm-shlib/CMakeFile.txt` gets executed before `tools/llvm-cfi-verify/lib/CMakeFile.txt`. As the latter CMakeFile adds a new library, this expansion order means that the library files required the unit tests in `unittests/tools/llvm-cfi-verify/` are not present in the dynamic library. This causes unit tests to fail as the required functions can't be found.
      
      This change now ensures that the libraries created by `llvm-cfi-verify` are statically linked into the unit tests. As `tools/llvm-cfi-verify/lib` no longer adds anything to `llvm-shlib`, there should be no concern about the order-of-compilation.
      
      Reviewers: skatkov, pcc
      
      Reviewed By: skatkov, pcc
      
      Subscribers: llvm-commits, kcc, pcc, aheejin, vlad.tsyrklevich, mgorny
      
      Differential Revision: https://reviews.llvm.org/D39020
      
      llvm-svn: 316059
      4dc1c973
    • Justin Bogner's avatar
      Add a utility to update MIR checks, similar to update_llc_test_checks · 7c1bdaf7
      Justin Bogner authored
      This adds update_mir_test_checks, which updates the check lines in mir
      tests. This can only update tests that start and end with .mir
      currently (ie, -run-pass) but it should be sufficient for updating at
      least some of the GlobalISel tests.
      
      llvm-svn: 316057
      7c1bdaf7
    • Jatin Bhateja's avatar
      [ScalarEvolution] Handling for ICmp occuring in the evolution chain. · 1fc49627
      Jatin Bhateja authored
      Summary:
       If a compare instruction is same or inverse of the compare in the
       branch of the loop latch, then return a constant evolution node.
       Currently scope of evaluation is limited to SCEV computation for
       PHI nodes.
      
       This shall facilitate computations of loop exit counts in cases
       where compare appears in the evolution chain of induction variables.
      
       Will fix PR 34538
      Reviewers: sanjoy, hfinkel, junryoungju
      
      Reviewed By: junryoungju
      
      Subscribers: javed.absar, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D38494
      
      llvm-svn: 316054
      1fc49627
    • Adrian Prantl's avatar
      Verifier: Ignore CUs pulled in by ODR-uniqued types. · 5a82f0a4
      Adrian Prantl authored
      When more than one Module is imported into the same context, such as during
      an LTO build before linking the modules, ODR type uniquing may cause types
      to point to a different CU. This check does not make sense in this case.
      
      This fixes the error reported in PR34944.
      
      https://bugs.llvm.org/show_bug.cgi?id=34944
      rdar://problem/34940685
      
      This reapplies a cleaner implementation of r316049.
      
      llvm-svn: 316052
      5a82f0a4
    • Adrian Prantl's avatar
      Revert "Verifier: Ignore CUs pulled in by ODR-uniqued types." · fe8226fd
      Adrian Prantl authored
      This reverts commit r316049.
      
      llvm-svn: 316050
      fe8226fd
    • Adrian Prantl's avatar
      Verifier: Ignore CUs pulled in by ODR-uniqued types. · f9a1cf6d
      Adrian Prantl authored
      When more than one Module is imported into the same context, such as during
      an LTO build before linking the modules, ODR type uniquing may cause types
      to point to a different CU. This check does not make sense in this case.
      
      This fixes the error reported in PR34944.
      
      https://bugs.llvm.org/show_bug.cgi?id=34944
      rdar://problem/34940685
      
      llvm-svn: 316049
      f9a1cf6d
    • Daniel Sanders's avatar
      [aarch64][globalisel] Register banks and classes should have distinct names. · 30247fd1
      Daniel Sanders authored
      Otherwise they are ambiguous in MIR.
      
      llvm-svn: 316047
      30247fd1
    • Michael Zolotukhin's avatar
      [GlobalDCE] Use DenseMap instead of unordered_multimap for GVDependencies. · c4fcc189
      Michael Zolotukhin authored
      Summary:
      std::unordered_multimap happens to be very slow when the number of elements
      grows large. On one of our internal applications we observed a 17x compile time
      improvement from changing it to DenseMap.
      
      Reviewers: mehdi_amini, serge-sans-paille, davide
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D38916
      
      llvm-svn: 316045
      c4fcc189
    • Peter Collingbourne's avatar
      lit: Improve %: normalization. · c03ceb92
      Peter Collingbourne authored
      The new scheme should match the normalization of embedded paths in
      linkrepro tar files.
      
      Differential Revision: https://reviews.llvm.org/D39023
      
      llvm-svn: 316044
      c03ceb92
  2. Oct 17, 2017
Loading