Permalink
Commits on Apr 5, 2015
  1. Mark BumpPtrAllocator::Allocate as returning a noalias pointer.

    The GCC attribute is curiously named 'malloc', but I think it's better
    to use LLVM terminology for the wrapper macro.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234121 91177308-0d34-0410-b5e6-96231b3b80d8
    d0k committed Apr 5, 2015
  2. [DAGCombiner] Merge FMUL Scalar and Vector constant canonicalization …

    …to RHS. NFCI.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234118 91177308-0d34-0410-b5e6-96231b3b80d8
    Simon Pilgrim committed Apr 5, 2015
Commits on Apr 4, 2015
  1. [opaque pointer type] More GEP API migrations

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234108 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 4, 2015
  2. remove function/variable names from comments; NFC

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234107 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 4, 2015
  3. less space; NFC

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234106 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 4, 2015
  4. Don't mix overload and default values.

    It makes it hard to see which one is being called.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234100 91177308-0d34-0410-b5e6-96231b3b80d8
    espindola committed Apr 4, 2015
  5. Implement unique sections with an unique ID.

    This allows the compiler/assembly programmer to switch back to a
    section. This in turn fixes the bootstrap failure on powerpc (tested
    on gcc110) without changing the ppc codegen at all.
    
    I will try to cleanup the various getELFSection overloads in a  followup patch.
    Just using a default argument now would lead to ambiguities.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234099 91177308-0d34-0410-b5e6-96231b3b80d8
    espindola committed Apr 4, 2015
  6. [opaque pointer type] More (constant, in this instance) GEP API migra…

    …tions
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234096 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 4, 2015
  7. [DAGCombiner] Canonicalize vector constants for ADD/MUL/AND/OR/XOR re…

    …-association
    
    Scalar integers are commuted to move constants to the RHS for re-association - this ensures vectors do the same.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234092 91177308-0d34-0410-b5e6-96231b3b80d8
    Simon Pilgrim committed Apr 4, 2015
  8. [X86] Apply AddedComplexity consistently for similar patterns. This k…

    …eeps them together in the DAGISel tables and reduces table size slightly.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234086 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed Apr 4, 2015
  9. Fix formatting and coding style.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234084 91177308-0d34-0410-b5e6-96231b3b80d8
    echristo committed Apr 4, 2015
  10. [X86] Add a comment about the change in r234075.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234079 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed Apr 4, 2015
  11. Strip trailing whitespace and reword explanatory comment.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234078 91177308-0d34-0410-b5e6-96231b3b80d8
    echristo committed Apr 4, 2015
  12. [X86] Don't use GR64 register 'and with immediate' instructions if th…

    …e immediate is zero in the upper 33-bits or upper 57-bits. Use GR32 instructions instead.
    
    Previously the patterns didn't have high enough priority and we would only use the GR32 form if the only the upper 32 or 56 bits were zero.
    
    Fixes PR23100.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234075 91177308-0d34-0410-b5e6-96231b3b80d8
    topperc committed Apr 4, 2015
Commits on Apr 3, 2015
  1. [WinEH] Fill out CatchHigh in the TryBlockMap

    Now all fields in the WinEH xdata have been filled out.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234067 91177308-0d34-0410-b5e6-96231b3b80d8
    majnemer committed Apr 3, 2015
  2. [opaque pointer type] More GEP IRBuilder API migrations

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234064 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 3, 2015
  3. [WinEH] Fill out .xdata for catch objects

    This add support for catching an exception such that an exception object
    available to the catch handler will be initialized by the runtime.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234062 91177308-0d34-0410-b5e6-96231b3b80d8
    majnemer committed Apr 3, 2015
  4. [WinEH] Sink UnwindHelp completely out of IR

    We don't need to represent UnwindHelp in IR.  Instead, we can use the
    knowledge that we are emitting the parent function to decide if we
    should create the UnwindHelp stack object.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234061 91177308-0d34-0410-b5e6-96231b3b80d8
    majnemer committed Apr 3, 2015
  5. Fixing a memory leak in WinEHPrepare

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234059 91177308-0d34-0410-b5e6-96231b3b80d8
    Andrew Kaylor committed Apr 3, 2015
  6. [opaque pointer type] More GEP IRBuilder API migrations...

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234058 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 3, 2015
  7. Use early returns to reduce indentation.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234057 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 3, 2015
  8. Fix a typo

    CHECK-LABEL had the wrong function name.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234051 91177308-0d34-0410-b5e6-96231b3b80d8
    majnemer committed Apr 3, 2015
  9. [InstCombine] Use DataLayout to determine vector element width

    InstCombine didn't realize that it needs to use DataLayout to determine
    how wide pointers are.  This lead to assertion failures.
    
    This fixes PR23113.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234046 91177308-0d34-0410-b5e6-96231b3b80d8
    majnemer committed Apr 3, 2015
  10. Fixing a build error

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234045 91177308-0d34-0410-b5e6-96231b3b80d8
    Andrew Kaylor committed Apr 3, 2015
  11. Fixing build warnings.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234043 91177308-0d34-0410-b5e6-96231b3b80d8
    Andrew Kaylor committed Apr 3, 2015
  12. [opaque pointer type] More GEP API migrations in IRBuilder uses

    The plan here is to push the API changes out from the common components
    (like Constant::getGetElementPtr and IRBuilder::CreateGEP related
    functions) and just update callers to either pass the type if it's
    obvious, or pass null.
    
    Do this with LoadInst as well and anything else that comes up, then to
    start porting specific uses to not pass null anymore - this may require
    some refactoring in each case.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234042 91177308-0d34-0410-b5e6-96231b3b80d8
    dwblaikie committed Apr 3, 2015
  13. [WinEH] Handle nested landing pads in outlined catch handlers

    Differential Revision: http://reviews.llvm.org/D8596
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234041 91177308-0d34-0410-b5e6-96231b3b80d8
    Andrew Kaylor committed Apr 3, 2015
  14. CodeGen: Assert that inlined-at locations agree

    As a follow-up to r234021, assert that a debug info intrinsic variable's
    `MDLocalVariable::getInlinedAt()` always matches the
    `MDLocation::getInlinedAt()` of its `!dbg` attachment.
    
    The goal here is to get rid of `MDLocalVariable::getInlinedAt()`
    entirely (PR22778), but I'll let these assertions bake for a while
    first.
    
    If you have an out-of-tree backend that just broke, you're probably
    attaching the wrong `DebugLoc` to a `DBG_VALUE` instruction.  The one
    you want is the location that was attached to the corresponding
    `@llvm.dbg.declare` or `@llvm.dbg.value` call that you started with.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234038 91177308-0d34-0410-b5e6-96231b3b80d8
    dexonsmith committed Apr 3, 2015
  15. [WinEH] Fold cast into assertion based on review feedback

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234034 91177308-0d34-0410-b5e6-96231b3b80d8
    Reid Kleckner committed Apr 3, 2015
  16. [GraphWriter] Attempt to open .dot files with xdg-open/open first

    Most desktop environments let the users specify his preferred application per
    file type. On mac/linux we can use open/xdg-open for that and should try this
    first before starting a heuristic search for various programs.
    
    Differential Revision: http://reviews.llvm.org/D6534
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234031 91177308-0d34-0410-b5e6-96231b3b80d8
    MatzeB committed Apr 3, 2015
  17. use update_llc_test_checks.py to tighten checking; remove unnecessary…

    … testing params
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234029 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 3, 2015
  18. use update_llc_test_checks.py to tighten checking; remove unnecessary…

    … testing params
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234027 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 3, 2015
  19. SelectionDAG: Use specialized metadata nodes in EmitFuncArgumentDbgVa…

    …lue(), NFC
    
    Use `MDLocalVariable` and `MDExpression` directly for the arguments of
    `EmitFuncArgumentDbgValue()` to simplify a follow-up patch.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234026 91177308-0d34-0410-b5e6-96231b3b80d8
    dexonsmith committed Apr 3, 2015
  20. use update_llc_test_checks.py to tighten checking; remove unnecessary…

    … testing params
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234024 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 3, 2015
  21. use update_llc_test_checks.py to tighten checking

    remove redundant and unnecessary test parameters
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234022 91177308-0d34-0410-b5e6-96231b3b80d8
    rotateright committed Apr 3, 2015