1. Sep 21, 2017
    • Hans Wennborg's avatar
      Pacify gcc's -Wnum-compare after r313775 · ec64d50d
      Hans Wennborg authored
      llvm-svn: 313779
      ec64d50d
    • Adrian Prantl's avatar
      llvm-dwarfdump: implement --recurse-depth=<N> · d3f9f213
      Adrian Prantl authored
      This patch implements the Darwin dwarfdump option --recurse-depth=<N>,
      which limits the recursion depth when selectively printing DIEs at an
      offset.
      
      Differential Revision: https://reviews.llvm.org/D38064
      
      llvm-svn: 313778
      d3f9f213
    • Rafael Espindola's avatar
      Add a special case for trivial alignment. · 8b250344
      Rafael Espindola authored
      Normally to find the offset of a value in a section, we have to
      compute the value since the alignment is defined on the final address.
      
      If the alignment is trivial, we can skip the value computation. This
      allows us to know the offset even in cases where we cannot yet know
      the value.
      
      llvm-svn: 313777
      8b250344
    • Marshall Clow's avatar
      Fix a bit of UB in __independent_bits_engine. Fixes PR#34663 · 5beb2c3a
      Marshall Clow authored
      llvm-svn: 313776
      5beb2c3a
    • Reid Kleckner's avatar
      [DebugInfo] Use a MapVector to coalesce MachineOperand locations · 92687d45
      Reid Kleckner authored
      Summary:
      The new code should be linear in the number of DBG_VALUEs, while the old
      code was quadratic. NFC intended.
      
      This is also hopefully a more direct expression of the problem, which is
      to:
      
      1. Rewrite all virtual register operands to stack slots or physical
         registers
      2. Uniquely number those machine operands, assigning them location
         numbers
      3. Rewrite all uses of the old location numbers in the interval map to
         use the new location numbers
      
      In r313400, I attempted to track which locations were spilled in a
      parallel bitvector indexed by location number. My code was broken
      because these location numbers are not stable during rewriting.
      
      Reviewers: aprantl, hans
      
      Subscribers: hiraditya, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D38068
      
      llvm-svn: 313775
      92687d45
    • Quentin Colombet's avatar
      [InstCombine] Add select simplifications · aa103b3d
      Quentin Colombet authored
      In these cases, two selects have constant selectable operands for
      both the true and false components and have the same conditional
      expression.
      We then create two arithmetic operations of the same type and feed a
      final select operation using the result of the true arithmetic for the true
      operand and the result of the false arithmetic for the false operand and reuse
      the original conditionl expression.
      The arithmetic operations are naturally folded as a consequence, leaving
      only the newly formed select to replace the old arithmetic operation.
      
      Patch by: Michael Berg <michael_c_berg@apple.com>
      Differential Revision: https://reviews.llvm.org/D37019
      
      llvm-svn: 313774
      aa103b3d
    • Jan Vesely's avatar
      Add travis CI configuration file · d0320d52
      Jan Vesely authored
      
      
      Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
      llvm-svn: 313773
      d0320d52
    • Jake Ehrlich's avatar
      Reland "[llvm-objcopy] Add support for .dynamic, .dynsym, and .dynstr" · a45afd50
      Jake Ehrlich authored
      I did not upload two binaries that I reference in tests.
      
      This change adds support for sections involved in dynamic loading such
      as SHT_DYNAMIC, SHT_DYNSYM, and allocated string tables.
      
      The two added binaries used for tests can be downloaded here and here
      
      Differential Revision: https://reviews.llvm.org/D36560
      
      llvm-svn: 313772
      a45afd50
    • Mohammad Shahid's avatar
      [SLP] Vectorize jumbled memory loads. · 2b281de5
      Mohammad Shahid authored
      Summary:
      This patch tries to vectorize loads of consecutive memory accesses, accessed
      in non-consecutive or jumbled way. An earlier attempt was made with patch D26905
      which was reverted back due to some basic issue with representing the 'use mask'
      jumbled accesses.
      
      This patch fixes the mask representation by recording the 'use mask' in the usertree entry.
      
      Change-Id: I9fe7f5045f065d84c126fa307ef6ebe0787296df
      
      Subscribers: mzolotukhin
      
      Reviewed By: ayal
      
      Differential Revision: https://reviews.llvm.org/D36130
      
      Review comments updated accordingly
      
      Change-Id: I22ab0a8a9bac9d49d74baa81a08e1e486f5e75f0
      
      Added a TODO for sortLoadAccesses API
      
      Change-Id: I3c679bf1865422d1b45e17ea28f1992bca660b58
      
      Modified the TODO for sortLoadAccesses API
      
      Change-Id: Ie64a66cb5f9e2a7610438abb0e750c6e090f9565
      
      Review comment update for using OpdNum to insert the mask in respective location
      
      Change-Id: I016d0c1b29874e979efc0205bbf078991f92edce
      
      Fixes '-Wsign-compare warning' in LoopAccessAnalysis.cpp and code rebase
      
      Change-Id: I64b2ea5e68c1d7b6a028f5ef8251c5a97333f89b
      llvm-svn: 313771
      2b281de5
    • Vedant Kumar's avatar
      [cmake] Add an option to build llvm with IR PGO · 9aaaeb3c
      Vedant Kumar authored
      This adds an LLVM_ENABLE_IR_PGO option to enable building llvm and its
      tools with IR PGO instrumentation.
      
      Usage: -DLLVM_BUILD_INSTRUMENTED=On -DLLVM_ENABLE_IR_PGO=On (both
      options must be enabled)
      
      Differential Revision: https://reviews.llvm.org/D38066
      
      llvm-svn: 313770
      9aaaeb3c
    • Vedant Kumar's avatar
      [cmake] Unmark LLVM_BUILD_INSTRUMENTED_COVERAGE as experimental · 0b7cb326
      Vedant Kumar authored
      The coverage bot has been stable for a while:
      
        http://lab.llvm.org:8080/coverage/coverage-reports/index.html
      
      llvm-svn: 313769
      0b7cb326
    • Vedant Kumar's avatar
      [docs] Make a note of LLVM_BUILD_INSTRUMENTED_COVERAGE · c23e14a0
      Vedant Kumar authored
      llvm-svn: 313768
      c23e14a0
    • Jake Ehrlich's avatar
      Reland "[llvm-objcopy] Add support for .dynamic, .dynsym, and .dynstr" · e5d424b8
      Jake Ehrlich authored
      I overzealously landed this before I was sure that another change
      wouldn't break the build that this change depends on.
      
      This change adds support for sections involved in dynamic loading such
      as SHT_DYNAMIC, SHT_DYNSYM, and allocated string tables.
      
      The two added binaries used for tests can be downloaded here and here
      
      Differential Revision: https://reviews.llvm.org/D36560
      
      llvm-svn: 313767
      e5d424b8
    • Teresa Johnson's avatar
      [ThinLTO] Fix dead stripping analysis for SamplePGO · f625118e
      Teresa Johnson authored
      Summary:
      The fix for dead stripping analysis in the case of SamplePGO indirect
      calls to local functions (r313151) introduced the possibility of an
      infinite loop.
      
      Make sure we check for the value being already live after we update it
      for SamplePGO indirect call handling.
      
      Reviewers: danielcdh
      
      Subscribers: mehdi_amini, inglorion, llvm-commits, eraman
      
      Differential Revision: https://reviews.llvm.org/D38086
      
      llvm-svn: 313766
      f625118e
    • Zachary Turner's avatar
      [lit] Reverse path list when updating environment vars. · 89783637
      Zachary Turner authored
      Bug pointed out by EricWF.  This would construct a path where
      items would be added in the wrong order, potentially leading
      to using the wrong tools for testing.
      
      llvm-svn: 313765
      89783637
    • Rafael Espindola's avatar
      Don't try to compute a value that is known to fail. · e4bad83e
      Rafael Espindola authored
      We try to evaluate expressions early when possible, but it is not
      possible to evaluate them early if they are based on a section.
      
      Before we would get this wrong on ABSOLUTE expressions.
      
      llvm-svn: 313764
      e4bad83e
    • Zachary Turner's avatar
      Make libcxx tests work when llvm sources are not present. · 3dd2356b
      Zachary Turner authored
      Despite a strong CMake warning that this is an unsupported
      libcxx build configuration, some bots still rely on being
      able to check out lit and libcxx independently with no
      LLVM sources, and then run lit against libcxx.
      
      A previous patch broke that workflow, so this is making it work
      again.  Unfortunately, it breaks generation of the llvm-lit
      script for libcxx, but we will just have to live with that until
      a solution is found that allows libcxx to make more use of
      llvm build pieces.  libcxx can still run tests by using the
      ninja check target, or by running lit.py directly against the
      build tree or source tree.
      
      Differential Revision: https://reviews.llvm.org/D38057
      
      llvm-svn: 313763
      3dd2356b
  2. Sep 20, 2017