1. Jun 02, 2017
  2. Jun 01, 2017
    • Matt Arsenault's avatar
      AMDGPU: Remove error on call in AsmPrinter · 3416b8c8
      Matt Arsenault authored
      Partial revert of r301938 which is making it harder
      to split patches up.
      
      llvm-svn: 304418
      3416b8c8
    • Matt Arsenault's avatar
      DAG: Remove pointless type check · b0835705
      Matt Arsenault authored
      These are only integer operations.
      
      llvm-svn: 304417
      b0835705
    • Matt Arsenault's avatar
      AMDGPU: Set high getCSRFirstUseCost · 50f43e41
      Matt Arsenault authored
      llvm-svn: 304416
      50f43e41
    • Amaury Sechet's avatar
      Fix addcarry-crash.ll · 94eb633d
      Amaury Sechet authored
      llvm-svn: 304415
      94eb633d
    • Amaury Sechet's avatar
      Add regression test for the addcarry crash. See D33770 for context. · b7619599
      Amaury Sechet authored
      llvm-svn: 304414
      b7619599
    • Florian Hahn's avatar
      [ARM] Create relocations for Thumb functions calling ARM fns in ELF. · fca7b834
      Florian Hahn authored
      Summary:
      Without using a fixup in this case, BL will be used instead of BLX to
      call internal ARM functions from Thumb functions.
      
      Reviewers: rafael, t.p.northover, peter.smith, kristof.beyls
      
      Reviewed By: peter.smith
      
      Subscribers: srhines, echristo, aemerson, rengolin, javed.absar, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33436
      
      llvm-svn: 304413
      fca7b834
    • Kamil Rytarowski's avatar
      [Solaris] Fix PR33228 - llvm::sys::fs::is_local_impl done right · 07c81b18
      Kamil Rytarowski authored
      Summary:
      Solaris-specific implementation for llvm::sys::fs::is_local_impl.
      FStype pattern matching might be a bit unreliable, but at least it fixes the build failure.
      
      
      
      Reviewers: mgorny, nlopes, llvm-commits, krytarowski
      
      Reviewed By: krytarowski
      
      Subscribers: voskresensky.vladimir, krytarowski
      
      Differential Revision: https://reviews.llvm.org/D33695
      
      llvm-svn: 304412
      07c81b18
    • Yaron Keren's avatar
      Increase the limit for the number of DiagnosticLexKinds.td diags. · 1d498f26
      Yaron Keren authored
      300 was reached in r304190, 400 should be enough for a while.
      
      llvm-svn: 304411
      1d498f26
    • Tobias Grosser's avatar
      [ScopInfo] Do not lookup key twice [NFC] · dff902fc
      Tobias Grosser authored
      
      
      Suggested-by: default avatarMichael Kruse <llvm@meinersbur.de>
      llvm-svn: 304410
      dff902fc
    • Amaury Sechet's avatar
      Only generate addcarry node when it is legal. · c84cc230
      Amaury Sechet authored
      Summary:
      This is a problem uncovered by stage2 testing. ADDCARRY end up being generated on target that do not support it.
      
      The patch that introduced the problem has other patches layed on top of it, so we want to fix the issue rather than revert it to avoid creating a lor of churn.
      
      A regression test will be added shortly, but this is committed as this in order to get the build back to green promptly.
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33770
      
      llvm-svn: 304409
      c84cc230
    • Alexander Kornienko's avatar
      Make the clang-cl test less restrictive. · c7a0b672
      Alexander Kornienko authored
      Make the test less restrictive to allow directory layout used in our test setup.
      
      llvm-svn: 304408
      c7a0b672
    • Chandler Carruth's avatar
      [PM/ThinLTO] Port the ThinLTO pipeline (both components) to the new PM. · 8b3be4e5
      Chandler Carruth authored
      Based on the original patch by Davide, but I've adjusted the API exposed
      to just be different entry points rather than exposing more state
      parameters. I've factored all the common logic out so that we don't have
      any duplicate pipelines, we just stitch them together in different ways.
      I think this makes the build easier to reason about and understand.
      
      This adds a direct method for getting the module simplification pipeline
      as well as a method to get the optimization pipeline. While not my
      express goal, this seems nice and gives a good place comment about the
      restrictions that are imposed on them.
      
      I did make some minor changes to the way the pipelines are structured
      here, but hopefully not ones that are significant or controversial:
      
      1) I sunk the PGO indirect call promotion to only be run when we have
         PGO enabled (or as part of the special ThinLTO pipeline).
      
      2) I made the extra GlobalOpt run in ThinLTO just happen all the time
         and at a slightly more powerful place (before we remove available
         externaly functions). This seems like general goodness and not a big
         compile time sink, so it didn't make sense to *only* use it in
         ThinLTO. Fewer differences in the pipeline makes everything simpler
         IMO.
      
      3) I hoisted the ThinLTO stop point pre-link above the the RPO function
         attr inference. The RPO inference won't infer anything terribly
         meaningful pre-link (recursiveness?) so it didn't make a lot of
         sense. But if the placement of RPO inference starts to matter, we
         should move it to the canonicalization phase anyways which seems like
         a better place for it (and there is a FIXME to this effect!). But
         that seemed a bridge too far for this patch.
      
      If we ever need to parameterize these pipelines more heavily, we can
      always sink the logic to helper functions with parameters to keep those
      parameters out of the public API. But the changes above seemed minor
      that we could possible get away without the parameters entirely.
      
      I added support for parsing 'thinlto' and 'thinlto-pre-link' names in
      pass pipelines to make it easy to test these routines and play with them
      in larger pipelines. I also added a really basic manifest of passes test
      that will show exactly how the pipelines behave and work as well as
      making updates to them clear.
      
      Lastly, this factoring does introduce a nesting layer of module pass
      managers in the default pipeline. I don't think this is a big deal and
      the flexibility of decoupling the pipelines seems easily worth it.
      
      Differential Revision: https://reviews.llvm.org/D33540
      
      llvm-svn: 304407
      8b3be4e5
    • Zvi Rackover's avatar
      [X86] Match bitcast of vxi1 to pmovmsk · 7693733e
      Zvi Rackover authored
      Summary:
      Add an early combine to match patterns such as:
        (i16 bitcast (v16i1 x))
        ->
        (i16 movmsk (v16i8 sext (v16i1 x)))
      
      This combine needs to happen early enough before
      type-legalization scalarizes the result of the setcc.
      
      Reviewers: igorb, craig.topper, RKSimon
      
      Subscribers: delena, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33311
      
      llvm-svn: 304406
      7693733e
    • Pavel Labath's avatar
      cmake: Enable process_vm_readv detection on android · 02f290f6
      Pavel Labath authored
      Only android and linux can have this function as far as I am aware, but
      it seems cleaner to enable this code for all platforms.
      
      llvm-svn: 304405
      02f290f6
    • Amaury Sechet's avatar
      Do not legalize large setcc with setcce, introduce setcccarry and do it with usubo/setcccarry. · 251ea8a4
      Amaury Sechet authored
      Summary:
      This is a continuation of the work started in D29872 . Passing the carry down as a value rather than as a glue allows for further optimizations. Introducing setcccarry makes the use of addc/subc unecessary and we can start the removal process.
      
      This patch only introduce the optimization strictly required to get the same level of optimization as was available before nothing more.
      
      Reviewers: jyknight, nemanjai, mkuper, spatel, RKSimon, zvi, bkramer
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D33374
      
      llvm-svn: 304404
      251ea8a4
    • Amaury Sechet's avatar