1. Aug 13, 2016
    • Zachary Turner's avatar
      Fix build on Windows. · bd22bf26
      Zachary Turner authored
      llvm-svn: 278526
      bd22bf26
    • Duncan P. N. Exon Smith's avatar
      BugReporter: Use ilist_half_embedded_sentinel_traits, NFC · e6bc5f9b
      Duncan P. N. Exon Smith authored
      This avoids duplicated code with llvm/ADT/ilist.h.  No functionality
      change.
      
      llvm-svn: 278525
      e6bc5f9b
    • Greg Clayton's avatar
      Switch over to using socketpair for local debugserver connections as they are... · c6c420fc
      Greg Clayton authored
      Switch over to using socketpair for local debugserver connections as they are twice as fast as TCP sockets (on macOS at least).
      
      This change opens a socket pair and passes the second socket pair file descriptor down to the debugserver binary using a new option: "--fd=N" where N is the file descriptor. This file descriptor gets passed via posix_spawn() so that there is no need to do any bind/listen or bind/accept calls and eliminates the hanshake unix socket that is used to pass the result of the actual port that ends up being used so it can save time on launch as well as being faster.
      
      This is currently only enabled on __APPLE__ builds. Other OSs should try modifying the #define from ProcessGDBRemote.cpp but the first person will need to port the --fd option over to lldb-server. Any OSs that enable USE_SOCKETPAIR_FOR_LOCAL_CONNECTION in their native builds can use the socket pair stuff. The #define is Apple only right now, but looks like:
      
      #if defined (__APPLE__)
      #define USE_SOCKETPAIR_FOR_LOCAL_CONNECTION 1
      #endif
      
      <rdar://problem/27814880> 
      
      llvm-svn: 278524
      c6c420fc
    • Duncan P. N. Exon Smith's avatar
      MachO: Use ilist_half_embedded_sentinel_traits, NFC · 623c4c15
      Duncan P. N. Exon Smith authored
      Use ilist_half_embedded_sentinel_traits for the list of
      lld::mach_o::normalized::TrieEdge, rather than duplicating the code.
      
      llvm-svn: 278523
      623c4c15
    • Dehao Chen's avatar
      Fine tuning of sample profile propagation algorithm. · c0a1e432
      Dehao Chen authored
      Summary: The refined propagation algorithm is more accurate and robust.
      
      Reviewers: davidxl, dnovillo
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D23224
      
      llvm-svn: 278522
      c0a1e432
    • Duncan P. N. Exon Smith's avatar
      Core: Use ilist_full_embedded_sentinel_traits for SimpleReference · 4a1e87d9
      Duncan P. N. Exon Smith authored
      Avoid custom code for sentinel traits in SimpleReference (the ilist node
      for references to a SimpleDefinedAtom), since they'll soon/eventually
      disappear from ilist entirely.
      
      Rather than using a BumpPtrAllocator, this drops the lazy sentinel
      characteristics and stores the sentinel directly in the ilist.  This
      unconditionally allocates the sentinel.
      
      At first glance, this looks like it might increase memory usage
      slightly, since an unreferenced SimpleDefinedAtom pays for a
      6-pointer-sized sentinel even when its list of references is empty.  In
      practice, the sentinel was being lazily allocated at the first call to
      DefinedAtom::begin/end anyway.  I don't expect any real memory effects
      here.
      
      Moreover, this is an intermediate state.  The ilist_*sentinel_traits are
      being phased out.
      
      As a preview of the final state: in lieu of a NodeTy sentinel, the ilist
      will have a single, untemplated list_node_base that has next/prev
      pointers.  This base node will serve both as a sentinel and as a pointer
      to the head of the list (the same memory layout as
      ilist_half_embedded_sentinel_traits, but without the UB).
      
      llvm-svn: 278521
      4a1e87d9
    • Artur Pilipenko's avatar
      [x86] X86ISelLowering zext(add_nuw(x, C)) --> add(zext(x), C_zext) · 87e4038a
      Artur Pilipenko authored
      Currently X86ISelLowering has a similar transformation for sexts:
      sext(add_nsw(x, C)) --> add(sext(x), C_sext)
      
      In this change I extend this code to handle zexts as well.
      
      Reviewed By: spatel
      
      Differential Revision: https://reviews.llvm.org/D23359
      
      llvm-svn: 278520
      87e4038a
    • Ehsan Amiri's avatar
      [BasicAA] Avoid calling GetUnderlyingObject, when the result of a previous call can be reused. · 17e17010
      Ehsan Amiri authored
      Recursive calls to aliasCheck from alias[GEP|Select|PHI] may result in a second call to GetUnderlyingObject for a Value, whose underlying object is already computed. This patch ensures that in this situations, the underlying object is not computed again, and the result of the previous call is resued.
      
      https://reviews.llvm.org/D22305
      
      llvm-svn: 278519
      17e17010
  2. Aug 12, 2016