1. Aug 12, 2016
  2. Aug 11, 2016
    • Teresa Johnson's avatar
      More missing llvm-lto2 dependencies · fdfde199
      Teresa Johnson authored
      Follow-on to r278341: Update CMakeLists.txt to match LLVMBuild.txt
      
      llvm-svn: 278349
      fdfde199
    • Lang Hames's avatar
      [MCJIT] Improve documentation and error handling for MCJIT::runFunction. · 30526070
      Lang Hames authored
      ExecutionEngine::runFunction is supposed to allow execution of arbitrary
      function types, but MCJIT can only reasonably support a limited subset of
      main-linke function types. This patch documents this limitation, and fixes
      MCJIT::runFunction to abort with a meaningful error at runtime if called with
      an unsupported function type.
      
      llvm-svn: 278348
      30526070
    • Duncan P. N. Exon Smith's avatar
      X86: Use operator lookup for operator==, NFC · 62e351f5
      Duncan P. N. Exon Smith authored
      Avoid relying on the MachineInstrBundleIterator operator== being
      implemented as a member function.
      
      llvm-svn: 278347
      62e351f5
    • Duncan P. N. Exon Smith's avatar
      IR: Don't cast the end iterator to Instruction* · 43724649
      Duncan P. N. Exon Smith authored
      End iterators are usually sentinels, not actually Instruction* at all.
      Stop casting to it just to get an iterator back.
      
      There is likely no observable functionality change here right now
      (although this is relying on UB, I doubt it was triggering anything),
      but I'll be removing the cast soon.
      
      llvm-svn: 278346
      43724649
    • Pavel Labath's avatar
      Fix unit tests on windows · 8c68837d
      Pavel Labath authored
      Python headers need to be included before PosixApi.h
      
      llvm-svn: 278345
      8c68837d
    • Duncan P. N. Exon Smith's avatar
      CodeGen: Check for a terminator in llvm::getFuncletMembership · 2e7af979
      Duncan P. N. Exon Smith authored
      Check for an end iterator from MachineBasicBlock::getFirstTerminator in
      llvm::getFuncletMembership.  If this is turned into an assertion, it
      fires in 48 X86 testcases (for example,
      CodeGen/X86/regalloc-spill-at-ehpad.ll).
      
      Since this is likely a latent bug (shouldn't all basic blocks end with a
      terminator?) I've filed PR28938.
      
      llvm-svn: 278344
      2e7af979
    • Matthew Simpson's avatar
      [SLP] Make RecursionMaxDepth a command line option (NFC) · 3f69195b
      Matthew Simpson authored
      llvm-svn: 278343
      3f69195b
    • Sanjay Patel's avatar
      fix comment; NFC · 38ae83de
      Sanjay Patel authored
      llvm-svn: 278342
      38ae83de
    • Teresa Johnson's avatar
      Fix bot failure from r278338 due to missing dependences · a26adfb6
      Teresa Johnson authored
      Add some missing dependences to the llvm-lto2 tool to attempt to appease
      missing symbols in link from bot:
      http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux/builds/15527
      
      llvm-svn: 278341
      a26adfb6
    • Sanjay Patel's avatar
      use auto* with dyn_cast ; NFC · e3c335cb
      Sanjay Patel authored
      llvm-svn: 278340
      e3c335cb
    • Sanjay Patel's avatar
      getParent()->getParent() == getFunction() ; NFC · 5a470950
      Sanjay Patel authored
      llvm-svn: 278339
      5a470950
    • Teresa Johnson's avatar
      Restore "Resolution-based LTO API." · 9ba95f99
      Teresa Johnson authored
      This restores commit r278330, with fixes for a few bot failures:
      - Fix a late change I had made to the save temps output file that I
        missed due to existing files sitting on my disk
      - Fix a bunch of Windows bot failures with "ambiguous call to overloaded
        function" due to confusion between llvm::make_unique vs
        std::make_unique (preface the new make_unique calls with "llvm::")
      - Attempt to fix a modules bot failure by adding a missing include
        to LTO/Config.h.
      
      Original change:
      
      Resolution-based LTO API.
      
      Summary:
      This introduces a resolution-based LTO API. The main advantage of this API over
      existing APIs is that it allows the linker to supply a resolution for each
      symbol in each object, rather than the combined object as a whole. This will
      become increasingly important for use cases such as ThinLTO which require us
      to process symbol resolutions in a more complicated way than just adjusting
      linkage.
      
      Patch by Peter Collingbourne.
      
      Reviewers: rafael, tejohnson, mehdi_amini
      
      Subscribers: lhames, tejohnson, mehdi_amini, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D20268
      
      llvm-svn: 278338
      9ba95f99
    • Ehsan Amiri's avatar
      revert 278334 · 3818f1b3
      Ehsan Amiri authored
      llvm-svn: 278337
      3818f1b3
    • Valery Pykhtin's avatar
      Revert "[AMDGPU] fix failure on printing of non-existing instruction operands." · 82c73bee
      Valery Pykhtin authored
      This reverts revision 278333, newly added test failed.
      
      llvm-svn: 278336
      82c73bee
    • Pavel Labath's avatar
      Make sure files include what they use (part 2/2) · 9ba9dfdd
      Pavel Labath authored
      This makes lldb still compile on linux after a project-wide clang-format
      
      llvm-svn: 278335
      9ba9dfdd
    • Ehsan Amiri's avatar
      Extend trip count instead of truncating IV in LFTR, when legal · b9fcc2b1
      Ehsan Amiri authored
      When legal, extending trip count in the loop control logic generates better code compared to truncating IV. This is because
      
      (1) extending trip count is a loop invariant operation (see genLoopLimit where we prove trip count is loop invariant).
      (2) Scalar Evolution seems to have problems understanding trunc when computing loop trip count. So removing them allows better analysis performed in Scalar Evolution. (In particular this fixes PR 28363 which is the motivation for this change).
      
      I am not going to perform any performance test. Any degradation caused by this should be an indication of a bug elsewhere.
      
      To prove legality, we rely on SCEV to prove zext(trunc(IV)) == IV (or similarly for sext). If this holds, we can prove equivalence of trunc(IV)==ExitCnt (1) and IV == zext(ExitCnt). Simply take zext of boths sides of (1) and apply the proven equivalence.
      
      https://reviews.llvm.org/D23075
      
      llvm-svn: 278334
      b9fcc2b1