1. Jun 12, 2016
    • Simon Pilgrim's avatar
      [CostModel][X86][SSE] Updated costs for vector BITREVERSE ops on SSSE3+ targets · 3fc09f7b
      Simon Pilgrim authored
      To account for the fast PSHUFB implementation now available
      
      llvm-svn: 272484
      3fc09f7b
    • Tobias Grosser's avatar
      This reverts recent expression type changes · 3717aa5d
      Tobias Grosser authored
      The recent expression type changes still need more discussion, which will happen
      on phabricator or on the mailing list. The precise list of commits reverted are:
      
      - "Refactor division generation code"
      - "[NFC] Generate runtime checks after the SCoP"
      - "[FIX] Determine insertion point during SCEV expansion"
      - "Look through IntToPtr & PtrToInt instructions"
      - "Use minimal types for generated expressions"
      - "Temporarily promote values to i64 again"
      - "[NFC] Avoid unnecessary comparison for min/max expressions"
      - "[Polly] Fix -Wunused-variable warnings (NFC)"
      - "[NFC] Simplify min/max expression generation"
      - "Simplify the type adjustment in the IslExprBuilder"
      
      Some of them are just reverted as we would otherwise get conflicts. I will try
      to re-commit them if possible.
      
      llvm-svn: 272483
      3717aa5d
    • Xinliang David Li's avatar
      [MBP] Code cleanup /NFC · 594ffa3d
      Xinliang David Li authored
      This is one of the patches to clean up the code so that
      it is in a better form to make future enhancements easier.
      
      In htis patch, the logic to collect viable successors are
      extrated as a helper to unclutter the caller which gets very
      large recenty. Also cleaned up BP adjustment code.
       
      
      llvm-svn: 272482
      594ffa3d
    • Vassil Vassilev's avatar
      [CMake] Allow LLVM to be embedded and built in a subfolder as part of another project. · e2d8a40a
      Vassil Vassilev authored
      Patch by Bertrand Bellenot!
      
      Reviewed by Chris Bieneman and me.
      
      llvm-svn: 272481
      e2d8a40a
    • Faisal Vali's avatar
      Fix cv-qualification of '*this' captures and nasty bug PR27507 · 67b04465
      Faisal Vali authored
      The bug report by Gonzalo (https://llvm.org/bugs/show_bug.cgi?id=27507 -- which results in clang crashing when generic lambdas that capture 'this' are instantiated in contexts where the Functionscopeinfo stack is not in a reliable state - yet getCurrentThisType expects it to be) - unearthed some additional bugs in regards to maintaining proper cv qualification through 'this' when performing by value captures of '*this'.
      
      This patch attempts to correct those bugs and makes the following changes:
      
         o) when capturing 'this', we do not need to remember the type of 'this' within the LambdaScopeInfo's Capture - it is never really used for a this capture - so remove it.
         o) teach getCurrentThisType to walk the stack of lambdas (even in scenarios where we run out of LambdaScopeInfo's such as when instantiating call operators) looking for by copy captures of '*this' and resetting the type of 'this' based on the constness of that capturing lambda's call operator.
      
      This patch has been baking in review-hell for > 6 weeks - all the comments so far have been addressed and the bug (that it addresses in passing, and I regret not submitting as a separate patch initially) has been reported twice independently, so is frequent and important for us not to just sit on. I merged the cv qualification-fix and the PR-fix initially in one patch, since they resulted from my initial implementation of star-this and so were related. If someone really feels strongly, I can put in the time to revert this - separate the two out - and recommit.  I won't claim it's immunized against all bugs, but I feel confident enough about the fix to land it for now.
      
      llvm-svn: 272480
      67b04465
    • Vikram TV's avatar
      Delay dominator updation while cloning loop. · c702b8b3
      Vikram TV authored
      Summary:
      Dominator updation fails for a loop inserted with a new basicblock.
      
      A block required by DT to set the IDom might not have been cloned yet. This is because there is no predefined ordering of loop blocks (except for the header block which should be the first block in the list).
      
      The patch first creates DT nodes for the cloned blocks and then separately updates the DT in a follow-on loop.
      
      Reviewers: anemet, dberlin
      
      Subscribers: dberlin, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D20899
      
      llvm-svn: 272479
      c702b8b3
  2. Jun 11, 2016