1. May 17, 2015
  2. May 16, 2015
    • Benjamin Kramer's avatar
      [WinEH] Push unique_ptr through the Action interface. · a48e0656
      Benjamin Kramer authored
      This was the source of many leaks in the past, this should fix them once and
      for all.
      
      llvm-svn: 237524
      a48e0656
    • Benjamin Kramer's avatar
      DenseMap: Remove poisoning of unused memory. · 5f28a521
      Benjamin Kramer authored
      DenseMap has great support for catching invalidated iterators now so we can get
      rid of this crude hack. Use after frees are covered by asan.
      
      llvm-svn: 237523
      5f28a521
    • Benjamin Kramer's avatar
      MC: Lower the default alignment of MCContext's operator new to 8 · dc29145b
      Benjamin Kramer authored
      This is more than sufficient for all MC types.
      
      llvm-svn: 237522
      dc29145b
    • James Molloy's avatar
      Update to r237520 - swap order of CHECK-NEXT lines. · 8ae1224f
      James Molloy authored
      ... I'd copied the check-next lines from a previous test so they were
      slightly wrong, and had managed to test the wrong source tree. D'oh!
      
      llvm-svn: 237521
      8ae1224f
    • James Molloy's avatar
      Reapply r237453 with a fix for the test timeouts. · b5aa200a
      James Molloy authored
      The test timeouts were due to instcombine fighting itself. Regression test added.
      Original log message:
      
      Canonicalize min/max expressions correctly.
      
      This patch introduces a canonical form for min/max idioms where one operand
      is extended or truncated. This often happens when the other operand is a
      constant. For example:
      
        %1 = icmp slt i32 %a, i32 0
          %2 = sext i32 %a to i64
            %3 = select i1 %1, i64 %2, i64 0
      
      Would now be canonicalized into:
      
        %1 = icmp slt i32 %a, i32 0
          %2 = select i1 %1, i32 %a, i32 0
            %3 = sext i32 %2 to i64
      
      This builds upon a patch posted by David Majenemer
      (https://www.marc.info/?l=llvm-commits&m=143008038714141&w=2). That pass
      passively stopped instcombine from ruining canonical patterns. This
      patch additionally actively makes instcombine canonicalize too.
      
      Canonicalization of expressions involving a change in type from int->fp
      or fp->int are not yet implemented.
      
      llvm-svn: 237520
      b5aa200a
    • Logan Chien's avatar
      Fix build when libunwind is disabled. · a8e1a289
      Logan Chien authored
      The previous commit breaks the builds when libc++abi is not built with
      libunwind becuase the default value for LIBCXXABI_USE_LLVM_UNWINDER is
      OFF, which is not pythonized.
      
      This CL fix the problem by calling pythonize_bool().
      
      llvm-svn: 237519
      a8e1a289
    • Logan Chien's avatar
      libcxx: Fix ARM libc++/abi and libunwind buildbot. · 891fd46a
      Logan Chien authored
      The test cases were crashing due to the mixed usage of the unwinding
      functions from both libunwind and libgcc_s.  The unwind functions are
      mixed because the "llvm_unwinder" entry is not available in the
      lit.site.cfg for libc++.  As a result, "-lgcc_s" is picked instead of
      "-lunwind".  The extra option to lit --param=link_flags="-lunwind" won't
      help either.
      
      This CL fix the problem by adding llvm_unwinder to lit.site.cfg.in.
      
      llvm-svn: 237518
      891fd46a
    • Daniel Sanders's avatar
      [x86] Distinguish the 'o', 'v', 'X', and 'i' inline assembly memory constraints. · d0496695
      Daniel Sanders authored
      Summary:
      But still handle them the same way since I don't know how they differ on
      this target.
      
      Of these, 'o' and 'v' are not tested but were already implemented.
      
      I'm not sure why 'i' is required for X86 since it's supposed to be an
      immediate constraint rather than a memory constraint. A test asserts
      without it so I've included it for now.
      
      No functional change intended.
      
      Reviewers: nadav
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D8254
      
      llvm-svn: 237517
      d0496695
    • Renato Golin's avatar
      Improve check on git-svnrevert, better error message · 6fd0cb58
      Renato Golin authored
      When the commit is not in the tree at all, find-rev returns 0
      and prints an empty string. We need to catch that problem too,
      when trying to revert.
      
      Adding a list of possible problems, so that you can easily and
      quickly correct without having to edit the script again.
      
      llvm-svn: 237516
      6fd0cb58
    • Vince Harron's avatar
      XFAIL'd some tests that fail very, very rarely · 41b94d9b
      Vince Harron authored
      llvm-svn: 237515
      41b94d9b
    • Craig Topper's avatar
      [TableGen] Change 'car' to 'head' and 'cdr' to 'tail' in assert comments.... · 41ce4de0
      Craig Topper authored
      [TableGen] Change 'car' to 'head' and 'cdr' to 'tail' in assert comments. These were the old names for these operations long ago. NFC
      
      llvm-svn: 237514
      41ce4de0
    • Craig Topper's avatar
      [TableGen] Remove !! that I can't really explain why I wrote. Also remove some... · 8ddb0d82
      Craig Topper authored
      [TableGen] Remove !! that I can't really explain why I wrote. Also remove some unnecessary curly braces from the same area.
      
      llvm-svn: 237513
      8ddb0d82
    • Craig Topper's avatar
      Correct indentation. NFC · 9a9d58a2
      Craig Topper authored
      llvm-svn: 237512
      9a9d58a2
    • Craig Topper's avatar
      [TableGen] Restructure a loop to make it exit early instead of skipping a... · 6ee494b6
      Craig Topper authored
      [TableGen] Restructure a loop to make it exit early instead of skipping a portion of the body based on what will also be the terminating condition. NFC
      
      llvm-svn: 237511
      6ee494b6
    • Matthias Braun's avatar
      MachineSink: Collect registers before clearing their killflags. · 352b89c4
      Matthias Braun authored
      Currently whenever we sink any instruction, we do clearKillFlags for
      every use of every use operand for that instruction, apparently there
      are a lot of duplication, therefore compile time penalties.
      
      This patch collect all the interested registers first, do clearKillFlags
      for it all together at once at the end, so we only need to do
      clearKillFlags once for one register, duplication is avoided.
      
      Patch by Lawrence Hu!
      
      Differential Revision: http://reviews.llvm.org/D9719
      
      llvm-svn: 237510
      352b89c4
    • Richard Smith's avatar
      Update to match clang r237508. · 9d5ae217
      Richard Smith authored
      llvm-svn: 237509
      9d5ae217
    • Richard Smith's avatar
      [modules] Retain the name as written for umbrella headers and directories,... · 2b63d15f
      Richard Smith authored
      [modules] Retain the name as written for umbrella headers and directories, rather than converting to an absolute path. No observable change expected, but this allows us to correctly compute the module for an umbrella header, which later changes will require.
      
      llvm-svn: 237508
      2b63d15f
    • Richard Trieu's avatar
      d3967635
    • Ahmed Bougacha's avatar
      [MemCpyOpt] Turn memcpy from just-memset'd source into memset. · f8fa3b8d
      Ahmed Bougacha authored
      There's no point in copying around constants, so, when all else fails,
      we can still transform memcpy of memset into two independent memsets.
      
      To quote the example, we can turn:
        memset(dst1, c, dst1_size);
        memcpy(dst2, dst1, dst2_size);
      into:
        memset(dst1, c, dst1_size);
        memset(dst2, c, dst2_size);
      When dst2_size <= dst1_size.
      
      Like r235232 for copy constructors, this can occur in move constructors.
      
      Differential Revision: http://reviews.llvm.org/D9682
      
      llvm-svn: 237506
      f8fa3b8d
    • Richard Trieu's avatar
      f956a49e
    • Enrico Granata's avatar
      Constant result ValueObjects are - well - constant · bb642e54
      Enrico Granata authored
      And they also do not have a thread/frame attached to them
      
      That makes dynamic and synthetic values attached to them impossible to update - which, among other things, makes it impossible to properly display persistent variables of types that could have such dynamic/persistent values
      
      Fix this by making it so that a ValueObject can control its constantness (hint: dynamic and synthetic values cannot be constant) and whether it wants to let itself be updated when an invalid thread is around
      
      llvm-svn: 237504
      bb642e54
    • Ahmed Bougacha's avatar
      [MemCpyOpt] Remove dead argument. NFC. · 15a31f67
      Ahmed Bougacha authored
      llvm-svn: 237503
      15a31f67
    • Duncan P. N. Exon Smith's avatar
      MC: Use MCSymbol in RelAndSymbol, NFC · 6e23e5a6
      Duncan P. N. Exon Smith authored
      Switch from `MCSymbolData` to `MCSymbol`.
      
      llvm-svn: 237502
      6e23e5a6
    • Ahmed Bougacha's avatar
      Remove dead code in testcase. NFC. · d2b8fc1f
      Ahmed Bougacha authored
      llvm-svn: 237501
      d2b8fc1f
    • Bill Schmidt's avatar
      [PPC64] Add vector pack/unpack support from ISA 2.07 · 41e14c4d
      Bill Schmidt authored
      This patch adds support for the following new instructions in the
      Power ISA 2.07:
      
        vpksdss
        vpksdus
        vpkudus
        vpkudum
        vupkhsw
        vupklsw
      
      These instructions are available through the vec_packs, vec_packsu,
      vec_unpackh, and vec_unpackl built-in interfaces.  These are
      lane-sensitive instructions, so the built-ins have different
      implementations for big- and little-endian, and the instructions must
      be marked as killing the vector swap optimization for now.
      
      The first three instructions perform saturating pack operations.  The
      fourth performs a modulo pack operation, which means it can be
      represented with a vector shuffle, and conversely the appropriate
      vector shuffles may cause this instruction to be generated.  The other
      instructions are only generated via built-in support for now.
      
      I noticed during patch preparation that the macro __VSX__ was not
      previously predefined when the power8-vector or direct-move features
      are requested.  This is an error, and I've corrected that here as
      well.
      
      Appropriate tests have been added.
      
      There is a companion patch to llvm for the rest of this support.
      
      llvm-svn: 237500
      41e14c4d
    • Bill Schmidt's avatar
      [PPC64] Add vector pack/unpack support from ISA 2.07 · 5ed84cdb
      Bill Schmidt authored
      This patch adds support for the following new instructions in the
      Power ISA 2.07:
      
        vpksdss
        vpksdus
        vpkudus
        vpkudum
        vupkhsw
        vupklsw
      
      These instructions are available through the vec_packs, vec_packsu,
      vec_unpackh, and vec_unpackl built-in interfaces.  These are
      lane-sensitive instructions, so the built-ins have different
      implementations for big- and little-endian, and the instructions must
      be marked as killing the vector swap optimization for now.
      
      The first three instructions perform saturating pack operations.  The
      fourth performs a modulo pack operation, which means it can be
      represented with a vector shuffle, and conversely the appropriate
      vector shuffles may cause this instruction to be generated.  The other
      instructions are only generated via built-in support for now.
      
      Appropriate tests have been added.
      
      There is a companion patch to clang for the rest of this support.
      
      llvm-svn: 237499
      5ed84cdb
    • Duncan P. N. Exon Smith's avatar
      MC: Use MCSymbol in MCObject::IsSymbolRefDifferenceFullyResolvedImpl() · d81ba532
      Duncan P. N. Exon Smith authored
      Transition one API from `MCSymbolData` to `MCSymbol`.  The function
      needs both, and the backpointer from `MCSymbolData` to `MCSymbol` is
      going away.
      
      llvm-svn: 237498
      d81ba532
    • Duncan P. N. Exon Smith's avatar
      MC: Change MCFragment::Atom to an MCSymbol, NFC · 09bfa58e
      Duncan P. N. Exon Smith authored
      Change `MCFragment::Atom` from an `MCSymbolData` to an `MCSymbol`,
      moving in the direction of removing the back-pointer.
      
      llvm-svn: 237497
      09bfa58e
    • Duncan P. N. Exon Smith's avatar
      MC: Change MCAssembler::Symbols to store MCSymbol, NFC · f48de1cb
      Duncan P. N. Exon Smith authored
      Instead of storing a list of the `MCSymbolData` in use, store the
      `MCSymbol`s.  Churning in the direction of removing the back pointer
      from `MCSymbolData`.
      
      llvm-svn: 237496
      f48de1cb