Skip to content
  1. Jul 26, 2013
  2. Jul 25, 2013
    • Roman Divacky's avatar
      PPC32 va_list is an actual structure so va_copy needs to copy the whole · c3825df8
      Roman Divacky authored
      structure not just a pointer. This implements that and thus fixes va_copy
      on PPC32. Fixes #15286. Both bug and patch by Florian Zeitz!
      
      llvm-svn: 187158
      c3825df8
    • Manman Ren's avatar
      Debug Info: update comments and add a FIXME. · 13b63e89
      Manman Ren authored
      llvm-svn: 187157
      13b63e89
    • Manman Ren's avatar
      Debug Info: improve the verifier to check field types. · 58737702
      Manman Ren authored
      Make sure the context field of DIType is MDNode.
      Fix testing cases to make them pass the verifier.
      
      llvm-svn: 187150
      58737702
    • Rafael Espindola's avatar
      72986667
    • Andrew Trick's avatar
      RegAllocGreedy comment. · f4b1ee34
      Andrew Trick authored
      llvm-svn: 187141
      f4b1ee34
    • Andrew Trick's avatar
      Evict local live ranges if they can be reassigned. · 8bb0a251
      Andrew Trick authored
      The previous change to local live range allocation also suppressed
      eviction of local ranges. In rare cases, this could result in more
      expensive register choices. This commit actually revives a feature
      that I added long ago: check if live ranges can be reassigned before
      eviction. But now it only happens in rare cases of evicting a local
      live range because another local live range wants a cheaper register.
      
      The benefit is improved code size for some benchmarks on x86 and armv7.
      
      I measured no significant compile time increase and performance
      changes are noise.
      
      llvm-svn: 187140
      8bb0a251
    • Andrew Trick's avatar
      Allocate local registers in order for optimal coloring. · 8485257d
      Andrew Trick authored
      Also avoid locals evicting locals just because they want a cheaper register.
      
      Problem: MI Sched knows exactly how many registers we have and assumes
      they can be colored. In cases where we have large blocks, usually from
      unrolled loops, greedy coloring fails. This is a source of
      "regressions" from the MI Scheduler on x86. I noticed this issue on
      x86 where we have long chains of two-address defs in the same live
      range. It's easy to see this in matrix multiplication benchmarks like
      IRSmk and even the unit test misched-matmul.ll.
      
      A fundamental difference between the LLVM register allocator and
      conventional graph coloring is that in our model a live range can't
      discover its neighbors, it can only verify its neighbors. That's why
      we initially went for greedy coloring and added eviction to deal with
      the hard cases. However, for singly defined and two-address live
      ranges, we can optimally color without visiting neighbors simply by
      processing the live ranges in instruction order.
      
      Other beneficial side effects:
      
      It is much easier to understand and debug regalloc for large blocks
      when the live ranges are allocated in order. Yes, global allocation is
      still very confusing, but it's nice to be able to comprehend what
      happened locally.
      
      Heuristics could be added to bias register assignment based on
      instruction locality (think late register pairing, banks...).
      
      Intuituvely this will make some test cases that are on the threshold
      of register pressure more stable.
      
      llvm-svn: 187139
      8485257d
    • Bill Wendling's avatar
      Add a way to add a kind-value string pair to an attribute. · 3b2f6106
      Bill Wendling authored
      llvm-svn: 187138
      3b2f6106
    • Adrian Prantl's avatar
      typo. · e4daf52a
      Adrian Prantl authored
      llvm-svn: 187135
      e4daf52a
    • Tim Northover's avatar
      AArch64: fix even more JIT failures · caaf2385
      Tim Northover authored
      The last patch corrected some issues, but constant-pool entries had actual
      codegen bugs in the large memory model (which MCJIT uses).
      
      llvm-svn: 187126
      caaf2385
    • Rafael Espindola's avatar
      Don't end a file name with a dot. It looks odd. · d3c89041
      Rafael Espindola authored
      llvm-svn: 187124
      d3c89041
    • Tim Northover's avatar
      AArch64: don't mask off shift bits when processing JIT relocations. · ca8a0079
      Tim Northover authored
      This should actually make the MCJIT tests pass again on AArch64. I don't know
      how I missed their failure before.
      
      llvm-svn: 187120
      ca8a0079
    • Richard Sandiford's avatar
      [SystemZ] Rework compare and branch support · c3f85d73
      Richard Sandiford authored
      Before the patch we took advantage of the fact that the compare and
      branch are glued together in the selection DAG and fused them together
      (where possible) while emitting them.  This seemed to work well in practice.
      However, fusing the compare so early makes it harder to remove redundant
      compares in cases where CC already has a suitable value.  This patch
      therefore uses the peephole analyzeCompare/optimizeCompareInstr pair of
      functions instead.
      
      No behavioral change intended, but it paves the way for a later patch.
      
      llvm-svn: 187116
      c3f85d73
Loading