1. Aug 28, 2019
  2. Aug 27, 2019
    • Lang Hames's avatar
      [JITLink] Add timers and -show-times option to llvm-jitlink. · 6fd39600
      Lang Hames authored
      The timers track time spent loading objects, linking, and (if applicable)
      running JIT-link'd code.
      
      llvm-svn: 370075
      6fd39600
    • Lang Hames's avatar
      [JITLink][ORC] Track eh-frame section size for registration/deregistration. · c48f1f6d
      Lang Hames authored
      On MachO, processing of the eh-frame section should stop if the end of the
      __eh_frame section is reached, regardless of whether or not there is a null CFI
      length field at the end of the section. This patch tracks the eh-frame section
      size and threads it through the appropriate APIs so that processing can be
      terminated correctly.
      
      No testcase yet: This patch is all API plumbing (rather than modification of
      linked memory) which the existing infrastructure does not provide a way of
      testing. Committing without a testcase until I have an idea of how to write
      one.
      
      llvm-svn: 370074
      c48f1f6d
    • Sam Elliott's avatar
      [RISCV] Set MaxAtomicInlineWidth and MaxAtomicPromoteWidth for RV32/RV64 targets with atomics · f260630e
      Sam Elliott authored
      Summary: This ensures that libcalls aren't generated when the target supports atomics. Atomics aren't in the base RV32I/RV64I instruction sets, so MaxAtomicInlineWidth and MaxAtomicPromoteWidth are set only when the atomics extension is being targeted. This must be done in setMaxAtomicWidth, as this should be done after handleTargetFeatures has been called.
      
      Reviewers: jfb, jyknight, wmi, asb
      
      Reviewed By: asb
      
      Subscribers: pzheng, MaskRay, s.egerton, lenary, dexonsmith, psnobl, benna, Jim, JohnLLVM, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, lewis-revill, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D57450
      
      llvm-svn: 370073
      f260630e
    • Lang Hames's avatar
      [JITLink] Don't under-align zero-fill sections. · 70e158e0
      Lang Hames authored
      If content sections have lower alignment than zero-fill sections then bump the
      overall segment alignment to avoid under-aligning the zero-fill sections.
      
      llvm-svn: 370072
      70e158e0
    • Sanjay Patel's avatar
      [DAGCombiner] cancel fnegs from multiplied operands of FMA · b516f1af
      Sanjay Patel authored
      (-X) * (-Y) + Z --> X * Y + Z
      
      This is a missing optimization that shows up as a potential regression in D66050,
      so we should solve it first. We appear to be partly missing this fold in IR as well.
      
      We do handle the simpler case already:
      (-X) * (-Y) --> X * Y
      
      And it might be beneficial to make the constraint less conservative (eg, if both
      operands are cheap, but not necessarily cheaper), but that causes infinite looping
      for the existing fmul transform.
      
      Differential Revision: https://reviews.llvm.org/D66755
      
      llvm-svn: 370071
      b516f1af