1. Jun 11, 2019
    • Tim Shen's avatar
      [LLD] Change FileCheck output file pattern to a temporary file · 23ee97be
      Tim Shen authored
      The previous name "%lib" doesn't trigger any actual replacement. It
      creates the file "./tools/lld/test/ELF/%lib.o" in the test directory.
      
      llvm-svn: 362988
      23ee97be
    • Cameron McInally's avatar
      4f3cf385
    • Marshall Clow's avatar
      Implement deduction guides for map/multimap. Reviewed as... · edfe8525
      Marshall Clow authored
      Implement deduction guides for map/multimap. Reviewed as https://reviews.llvm.org/D58587. Thanks to Quuxplusone for the submission.
      
      llvm-svn: 362986
      edfe8525
    • Tatyana Krasnukha's avatar
      f62e23d9
    • Alex Langford's avatar
      [Target][NFC] Rename GetCPPLanguageRuntime to Get · 45e78773
      Alex Langford authored
      This is a followup to rL362981, in which I moved GetObjCLanguageRuntime
      from Process to ObjCLanguageRuntime, renaming it to Get along the way.
      
      llvm-svn: 362984
      45e78773
    • Erik Pilkington's avatar
    • Antonio Afonso's avatar
      Create a generic handler for Xfer packets · 57e2da4f
      Antonio Afonso authored
      Summary:
      This is the first of a few patches I have to improve the performance of dynamic module loading on Android.
      
      In this first diff I'll describe the context of my main motivation and will then link to it in the other diffs to avoid repeating myself.
      
      ## Motivation
      I have a few scenarios where opening a specific feature on an Android app takes around 40s when lldb is attached to it. The reason for that is because 40 modules are dynamicly loaded at that point in time and each one of them is taking ~1s.
      
      ## The problem
      To learn about new modules we have a breakpoint on a linker function that is called twice whenever a module is loaded. One time just before it's loaded (so lldb can check which modules are loaded) and another right after it's loaded (so lldb can check again which ones are loaded and calculate the diference).
      It's figuring out which modules are loaded that is taking quite some time. This is currently done by traversing the linked list of loaded shared libraries that the linker maintains in memory. Each item in the linked list requires its own `x` packet sent to the gdb server (this is android so the network also plays a part). In my scenario there are 400+ loaded libraries and even though we read 0x800 worth of bytes at a time we still make ~180 requests that end up taking 150-200ms.
      We also do this twice, once before the module is loaded (state = eAdd) and another right after (state = eConsistent) which easly adds up to ~400ms per module.
      
      ## A solution
      
      **Implement `xfer:libraries-svr4` in lldb-server:**
      I noticed in the code that loads the new modules that it had support for the `xfer:libraries-svr4` packet (added ~4 years ago to support the ds2 debug server) but we didn't support it in lldb-server. This single packet returns an xml list of all the loaded modules by the process. The advantage is that there's no more need to make 180 requests to read the linked list. Additionally this new requests takes around 10ms.
      
      **More efficient usage of the `xfer:libraries-svr4` packet in lldb:**
      When `xfer:libraries-svr4` is available the Process class has a `LoadModules` function that requests this packet and then loads or unloads modules based on the current list of loaded modules by the process.
      This is the function that is used by the DYLDRendezvous class to get the list of loaded modules before and after the module is loaded. However, this is really not needed since the LoadModules function already loaded or unloaded the modules accordingly. I changed this strategy to call LoadModules only once (after the process has loaded the module).
      
      **Bugs**
      I found a few issues in lldb while implementing this and have submitted independent patches for them.
      
      I tried to devide this into multiple logical patches to make it easier to review and discuss.
      
      ## Tests
      
      I wanted to put these set of diffs up before having all the tests up and running to start having them reviewed from a techical point of view. I'm also having some trouble making the tests running on linux so I need more time to make that happen.
      
      # This diff
      
      The `xfer` packages follow the same protocol, they are requested with `xfer:<object>:<read|write>:<annex>:<offset,length>` and a return that starts with `l` or `m` depending if the offset and length covers the entire data or not. Before implementing the `xfer:libraries-svr4` I refactored the `xfer:auxv` to generically handle xfer packets so we can easly add new ones.
      
      The overall structure of the function ends up being:
      * Parse the packet into its components: object, offset etc.
      * Depending on the object do its own logic to generate the data.
      * Return the data based on its size, the requested offset and length.
      
      Reviewers: clayborg, xiaobai, labath
      
      Reviewed By: labath
      
      Subscribers: mgorny, krytarowski, lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D62499
      
      llvm-svn: 362982
      57e2da4f
    • Alex Langford's avatar
      [Target] Remove Process::GetObjCLanguageRuntime · e823bbe8
      Alex Langford authored
      Summary:
      In an effort to make Process more language agnostic, I removed
      GetCPPLanguageRuntime from Process. I'm following up now with an equivalent
      change for ObjC.
      
      Differential Revision: https://reviews.llvm.org/D63052
      
      llvm-svn: 362981
      e823bbe8
    • Philip Reames's avatar
      4bf1c239
    • Matt Davis's avatar
      [Docs] [llvm-mca] Point out a caveat for using llvm-mca markers in source code. · 41bf444e
      Matt Davis authored
      Summary: See: https://bugs.llvm.org/show_bug.cgi?id=42173
      
      Reviewers: andreadb, mattd, RKSimon, spatel
      
      Reviewed By: andreadb
      
      Subscribers: tschuett, gbedwell, llvm-commits, andreadb
      
      Tags: #llvm
      
      Patch by Max Marrone (maxpm)! Thanks!
      
      Differential Revision: https://reviews.llvm.org/D63040
      
      llvm-svn: 362979
      41bf444e
    • Sam McCall's avatar
      [clangd] Remove old hidden -use-dex-index flag · c920c373
      Sam McCall authored
      llvm-svn: 362978
      c920c373
    • Martin Storsjo's avatar
      [Driver] Look for -m in response files as well · bb12396f
      Martin Storsjo authored
      Also expand response files in the MinGW driver.
      
      This should fix PR42135.
      
      Differential Revision: https://reviews.llvm.org/D63024
      
      llvm-svn: 362977
      bb12396f
    • Philip Reames's avatar
      [Tests] Add tests for D62939 (miscompiles around dead pointer IVs) · 78c0d756
      Philip Reames authored
      Flesh out a collection of tests for switching to a dead IV within LFTR, both for the current miscompile, and for some cases which we should be able to handle via simple reasoning.
      
      llvm-svn: 362976
      78c0d756
    • Philip Reames's avatar
      [LFTR] Use recomputed BE count · a9633d5f
      Philip Reames authored
      This was discussed as part of D62880.  The basic thought is that computing BE taken count after widening should produce (on average) an equally good backedge taken count as the one before widening.  Since there's only one test in the suite which is impacted by this change, and it's essentially equivelent codegen, that seems to be a reasonable assertion.  This change was separated from r362971 so that if this turns out to be problematic, the triggering piece is obvious and easily revertable.
      
      For the nestedIV example from elim-extend.ll, we end up with the following BE counts:
      BEFORE: (-2 + (-1 * %innercount) + %limit)
      AFTER: (-1 + (sext i32 (-1 + %limit) to i64) + (-1 * (sext i32 %innercount to i64))<nsw>)
      
      Note that before is an i32 type, and the after is an i64.  Truncating the i64 produces the i32. 
      
      llvm-svn: 362975
      a9633d5f
    • Jinsong Ji's avatar
      [PowerPC][HTM]Fix $zero is not a GPRC register for builtin_ttest · 9c7f93e9
      Jinsong Ji authored
      This was found during HTM cleanup.
      Adding a test for builtin_ttest would expose following issue.
      
      *** Bad machine code: Illegal physical register for instruction ***
       - function:    test10
       - basic block: %bb.0 entry (0xf0e57497b58)
       - instruction: %5:crrc0 = TABORTWCI 0, $zero, 0
       - operand 2:   $zero
        $zero is not a GPRC register.
      LLVM ERROR: Found 1 machine code errors.
      
      Differential Revision: https://reviews.llvm.org/D63079
      
      llvm-svn: 362974
      9c7f93e9
    • Jordan Rupprecht's avatar
      [llvm-objcopy] Fix SHT_GROUP ordering. · f8f9d65f
      Jordan Rupprecht authored
      Summary:
      When llvm-objcopy sorts sections during finalization, it only sorts based on the offset, which can cause the group section to come after the sections it contains. This causes link failures when using gold to link objects created by llvm-objcopy.
      
      Fix this for now by copying GNU objcopy's behavior of placing SHT_GROUP sections first. In the future, we may want to remove this sorting entirely to more closely preserve the input file layout.
      
      This fixes https://bugs.llvm.org/show_bug.cgi?id=42052.
      
      Reviewers: jakehehrlich, jhenderson, MaskRay, espindola, alexshap
      
      Reviewed By: MaskRay
      
      Subscribers: phuongtrang148993, emaste, arichardson, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D62620
      
      llvm-svn: 362973
      f8f9d65f
    • Sanjay Patel's avatar
      [Analysis] add unit test file for VectorUtils; NFC · b0f98d34
      Sanjay Patel authored
      llvm-svn: 362972
      b0f98d34
    • Philip Reames's avatar
      Prepare for multi-exit LFTR [NFC] · 5d84ccb2
      Philip Reames authored
      This change does the plumbing to wire an ExitingBB parameter through the LFTR implementation, and reorganizes the code to work in terms of a set of individual loop exits. Most of it is fairly obvious, but there's one key complexity which makes it worthy of consideration. The actual multi-exit LFTR patch is in D62625 for context.
      
      Specifically, it turns out the existing code uses the backedge taken count from before a IV is widened. Oddly, we can end up with a different (more expensive, but semantically equivelent) BE count for the loop when requerying after widening.  For the nestedIV example from elim-extend, we end up with the following BE counts:
      BEFORE: (-2 + (-1 * %innercount) + %limit)
      AFTER: (-1 + (sext i32 (-1 + %limit) to i64) + (-1 * (sext i32 %innercount to i64))<nsw>)
      
      This is the only test in tree which seems sensitive to this difference. The actual result of using the wider BETC on this example is that we actually produce slightly better code. :)
      
      In review, we decided to accept that test change.  This patch is structured to preserve the old behavior, but a separate change will immediate follow with the behavior change.  (I wanted it separate for problem attribution purposes.)
      
      Differential Revision: https://reviews.llvm.org/D62880
      
      llvm-svn: 362971
      5d84ccb2
    • Reid Kleckner's avatar
      Add unused symbol to thunk files to force wholearchive inclusion · a5f2c208
      Reid Kleckner authored
      These "dynamic_runtime_thunk" object files exist to create a weak alias
      from 'foo' to 'foo_dll' for all weak sanitizer runtime symbols. The weak
      aliases are implemented as /alternatename linker options in the
      .drective section, so they are not actually in the symbol table. In
      order to force the Visual C++ linker to load the object, even with
      -wholearchive:, we have to provide at least one external symbol. Once we
      do that, it will read the .drective sections and see the weak aliases.
      
      Fixes PR42074
      
      llvm-svn: 362970
      a5f2c208
    • Wolfgang Pieb's avatar
      [ELF][llvm-objdump] Treat dynamic tag values as virtual addresses instead of offsets · 54cbae1e
      Wolfgang Pieb authored
      The ELF gABI requires the tag values of DT_REL, DT_RELA and DT_JMPREL to be
      treated as virtual addresses. They were treated as offsets. Fixes PR41832.
      
      Differential Revision: https://reviews.llvm.org/D62972
      
      llvm-svn: 362969
      54cbae1e
    • Sameer AbuAsal's avatar
      [RISCV] Replace map with set in getReqFeatures · 04b5ee99
      Sameer AbuAsal authored
      Summary:
      Use a set in getReqFeatures() in RISCVCompressInstEmitter instead of a map
      because the index we save is not needed.
      
      This also fixes bug 41666.
      
      Reviewers: llvm-commits, apazos, asb, nickdesaulniers
      
      Reviewed By: asb
      
      Subscribers: Jim, nickdesaulniers, rbar, johnrusso, simoncook, niosHD, kito-cheng, shiva0217, jrtc27, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D61412
      
      llvm-svn: 362968
      04b5ee99
    • Zhihao Yuan's avatar
      [libc++] Fix leading zeros in std::to_chars · 6bc4a768
      Zhihao Yuan authored
      Summary:
      It is a bugfix proposal for https://bugs.llvm.org/show_bug.cgi?id=42166.
      
      `std::to_chars` appends leading zeros if input 64-bit value has 9, 10 or 11 digits.
      According to documentation `std::to_chars` must not append leading zeros:
      https://en.cppreference.com/w/cpp/utility/to_chars
      
      Changeset should not affect `std::to_chars` performance:
      http://quick-bench.com/CEpRs14xxA9WLvkXFtaJ3TWOVAg
      
      Unit test that `std::from_chars` supports compatibility for both `std::to_chars` outputs (previous and fixed one) already exists:
      https://github.com/llvm-mirror/libcxx/blob/1f60111b597e5cb80a4513ec86f79b7e137f7793/test/std/utilities/charconv/charconv.from.chars/integral.pass.cpp#L63
      
      Reviewers: lichray, mclow.lists, ldionne, EricWF
      
      Reviewed By: lichray, mclow.lists
      
      Subscribers: zoecarver, christof, dexonsmith, libcxx-commits
      
      Differential Revision: https://reviews.llvm.org/D63047
      
      llvm-svn: 362967
      6bc4a768
    • Jordan Rupprecht's avatar
      [docs] Add 'git llvm revert' to getting started guide · 13d16b94
      Jordan Rupprecht authored
      Summary: This documents `git llvm revert rNNNNNN` in the getting started guide for broader visibility.
      
      Reviewers: jyknight, mehdi_amini
      
      Subscribers: llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D63023
      
      llvm-svn: 362966
      13d16b94
    • Craig Topper's avatar
      [X86] Attempt to make the Intel core CPU inheritance a little more readable and maintainable · 8e1f3a05
      Craig Topper authored
      The recently added cooperlake CPU has made our already ugly switch statement even worse. There's a CPU exclusion list around the bf16 feature in the cooper lake block. I worry that we'll have to keep adding new CPUs to that until bf16 intercepts a client space CPU. We have several other exclusion lists in other parts of the switch due to skylakeserver, cascadelake, and cooperlake not having sgx. Another for cannonlake not having clwb but having all other features from skx.
      
      This removes all these special ifs at the cost of some duplication of features and a goto. I've copied all of the skx features into either cannonlake or icelakeclient(for clwb). And pulled sklyakeserver, cascadelake, and cooperlake out of the main inheritance chain into their own chain. At the end of skylakeserver we merge back into the main chain at skylakeclient but below sgx. I think this is at least easier to follow.
      
      Differential Revision: https://reviews.llvm.org/D63018
      
      llvm-svn: 362965
      8e1f3a05
    • Andrea Di Biagio's avatar
      [llvm-mca] Enable bottleneck analysis when flag -all-views is specified. · c650a908
      Andrea Di Biagio authored
      Bottleneck Analysis is one of the many views available in llvm-mca. Therefore,
      it should be enabled when flag -all-views is passed in input to the tool.
      
      llvm-svn: 362964
      c650a908
    • Francis Visoiu Mistrih's avatar
      [FastISel] Skip creating unnecessary vregs for arguments · a438432a
      Francis Visoiu Mistrih authored
      This behavior was added in r130928 for both FastISel and SD, and then
      disabled in r131156 for FastISel.
      
      This re-enables it for FastISel with the corresponding fix.
      
      This is triggered only when FastISel can't lower the arguments and falls
      back to SelectionDAG for it.
      
      FastISel contains a map of "register fixups" where at the end of the
      selection phase it replaces all uses of a register with another
      register that FastISel sometimes pre-assigned. Code at the end of
      SelectionDAGISel::runOnMachineFunction is doing the replacement at the
      very end of the function, while other pieces that come in before that
      look through the MachineFunction and assume everything is done. In this
      case, the real issue is that the code emitting COPY instructions for the
      liveins (physreg to vreg) (EmitLiveInCopies) is checking if the vreg
      assigned to the physreg is used, and if it's not, it will skip the COPY.
      If a register wasn't replaced with its assigned fixup yet, the copy will
      be skipped and we'll end up with uses of undefined registers.
      
      This fix moves the replacement of registers before the emission of
      copies for the live-ins.
      
      The initial motivation for this fix is to enable tail calls for
      swiftself functions, which were blocked because we couldn't prove that
      the swiftself argument (which is callee-save) comes from a function
      argument (live-in), because there was an extra copy (vreg to vreg).
      
      A few tests are affected by this:
      
      * llvm/test/CodeGen/AArch64/swifterror.ll: we used to spill x21
      (callee-save) but never reload it because it's attached to the return.
      We now don't even spill it anymore.
      * llvm/test/CodeGen/*/swiftself.ll: we tail-call now.
      * llvm/test/CodeGen/AMDGPU/mubuf-legalize-operands.ll: I believe this
      test was not really testing the right thing, but it worked because the
      same registers were re-used.
      * llvm/test/CodeGen/ARM/cmpxchg-O0.ll: regalloc changes
      * llvm/test/CodeGen/ARM/swifterror.ll: get rid of a copy
      * llvm/test/CodeGen/Mips/*: get rid of spills and copies
      * llvm/test/CodeGen/SystemZ/swift-return.ll: smaller stack
      * llvm/test/CodeGen/X86/atomic-unordered.ll: smaller stack
      * llvm/test/CodeGen/X86/swifterror.ll: same as AArch64
      * llvm/test/DebugInfo/X86/dbg-declare-arg.ll: stack size changed
      
      Differential Revision: https://reviews.llvm.org/D62361
      
      llvm-svn: 362963
      a438432a
    • Kostya Kortchinsky's avatar
      [scudo][standalone] Introduce the thread specific data structures · 52bfd673
      Kostya Kortchinsky authored
      Summary:
      This CL adds the structures dealing with thread specific data for the
      allocator. This includes the thread specific data structure itself and
      two registries for said structures: an exclusive one, where each thread
      will have its own TSD struct, and a shared one, where a pool of TSD
      structs will be shared by all threads, with dynamic reassignment at
      runtime based on contention.
      
      This departs from the current Scudo implementation: we intend to make
      the Registry a template parameter of the allocator (as opposed to a
      single global entity), allowing various allocators to coexist with
      different TSD registry models. As a result, TSD registry and Allocator
      are tightly coupled.
      
      This also corrects a couple of things in other files that I noticed
      while adding this.
      
      Reviewers: eugenis, vitalybuka, morehouse, hctim
      
      Reviewed By: morehouse
      
      Subscribers: srhines, mgorny, delcypher, jfb, #sanitizers, llvm-commits
      
      Tags: #llvm, #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D62258
      
      llvm-svn: 362962
      52bfd673
    • Saleem Abdulrasool's avatar
      ABI: reflow the table text (NFC) · 9aff1ddc
      Saleem Abdulrasool authored
      Reflow the text for the table to make the table legible.  This is purely
      cosmetic, but makes understanding the contents of the table easier.  NFCI.
      
      llvm-svn: 362961
      9aff1ddc
    • Pavel Labath's avatar
      Breakpad: Add support for the arm64e "architecture" · 5e173dc5
      Pavel Labath authored
      llvm-svn: 362960
      5e173dc5
    • Sam Clegg's avatar
      [WebAssembly] Cleanup toolchain test files. NFC. · 582eaca3
      Sam Clegg authored
      Summary: Split up long lines to improve test readability.
      
      Subscribers: dschuff, jgravelle-google, aheejin, sunfish, jfb, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D63081
      
      llvm-svn: 362959
      582eaca3
    • Cameron McInally's avatar
      [ExecutionEngine] Fix rL362941: Add UnaryOperator visitor to the interpreter · 670d0f47
      Cameron McInally authored
      Missed break statements. This was D62881.
      
      llvm-svn: 362958
      670d0f47
  2. Jun 10, 2019
    • Piotr Sobczak's avatar
      [AMDGPU] Optimize image_[load|store]_mip · 9b11e93d
      Piotr Sobczak authored
      Summary:
      Replace image_load_mip/image_store_mip
      with image_load/image_store if lod is 0.
      
      Reviewers: arsenm, nhaehnle
      
      Reviewed By: arsenm
      
      Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D63073
      
      llvm-svn: 362957
      9b11e93d
    • Simon Tatham's avatar
      Revert rL362953 and its followup rL362955. · 67065c5c
      Simon Tatham authored
      These caused a build failure because I managed not to notice they
      depended on a later unpushed commit in my current stack. Sorry about
      that.
      
      llvm-svn: 362956
      67065c5c
    • Simon Tatham's avatar
      [ARM] Add the non-MVE instructions in Arm v8.1-M. · 42078d41
      Simon Tatham authored
      This should have been part of r362953, but I had a finger-trouble
      incident and committed the old rather than new version of the patch.
      Sorry.
      
      llvm-svn: 362955
      42078d41
    • Sanjay Patel's avatar
      [InstCombine] allow unordered preds when canonicalizing to fabs() · 9650c95b
      Sanjay Patel authored
      We have a known-never-nan value via 'nnan', so an unordered predicate
      is the same as its ordered sibling.
      
      Similar to:
      rL362937
      
      llvm-svn: 362954
      9650c95b
    • Simon Tatham's avatar
      [ARM] Add the non-MVE instructions in Arm v8.1-M. · baeea919
      Simon Tatham authored
      This adds support for the new family of conditional selection /
      increment / negation instructions; the low-overhead branch
      instructions (e.g. BF, WLS, DLS); the CLRM instruction to zero a whole
      list of registers at once; the new VMRS/VMSR and VLDR/VSTR
      instructions to get data in and out of 8.1-M system registers,
      particularly including the new VPR register used by MVE vector
      predication.
      
      To support this, we also add a register name 'zr' (used by the CSEL
      family to force one of the inputs to the constant 0), and operand
      types for lists of registers that are also allowed to include APSR or
      VPR (used by CLRM). The VLDR/VSTR instructions also need some new
      addressing modes.
      
      The low-overhead branch instructions exist in their own separate
      architecture extension, which we treat as enabled by default, but you
      can say -mattr=-lob or equivalent to turn it off.
      
      Reviewers: dmgreen, samparker, SjoerdMeijer, t.p.northover
      
      Reviewed By: samparker
      
      Subscribers: miyuki, javed.absar, kristof.beyls, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D62667
      
      llvm-svn: 362953
      baeea919
    • Whitney Tsang's avatar
      [DA] Add an option to control delinearization validity checks · 05bf5f93
      Whitney Tsang authored
      Summary: Dependence Analysis performs static checks to confirm validity
      of delinearization. These checks often fail for 64-bit targets due to
      type conversions and integer wrapping that prevent simplification of the
      SCEV expressions. These checks would also fail at compile-time if the
      lower bound of the loops are compile-time unknown.
      Author: bmahjour
      Reviewer: Meinersbur, jdoerfert, kbarton, dmgreen, fhahn
      Reviewed By: Meinersbur, jdoerfert, dmgreen
      Subscribers: fhahn, hiraditya, javed.absar, llvm-commits, Whitney,
      etiotto
      Tag: LLVM
      Differential Revision: https://reviews.llvm.org/D62610
      
      llvm-svn: 362952
      05bf5f93
    • Jeremy Morse's avatar
      [DebugInfo] Terminate all location-lists at end of block · bcff4172
      Jeremy Morse authored
      This commit reapplies r359426 (which was reverted in r360301 due to
      performance problems) and rolls in D61940 to address the performance problem.
      I've combined the two to avoid creating a span of slow-performance, and to
      ease reverting if more problems crop up.
      
      The summary of D61940: This patch removes the "ChangingRegs" facility in
      DbgEntityHistoryCalculator, as its overapproximate nature can produce incorrect
      variable locations. An unchanging register doesn't mean a variable doesn't
      change its location.
      
      The patch kills off everything that calculates the ChangingRegs vector.
      Previously ChangingRegs spotted epilogues and marked registers as unchanging if
      they weren't modified outside the epilogue, increasing the chance that we can
      emit a single-location variable record. Without this feature,
      debug-loc-offset.mir and pr19307.mir become temporarily XFAIL. They'll be
      re-enabled by D62314, using the FrameDestroy flag to identify epilogues, I've
      split this into two steps as FrameDestroy isn't necessarily supported by all
      backends.
      
      The logic for terminating variable locations at the end of a basic block now
      becomes much more enjoyably simple: we just terminate them all.
      
      Other test changes: inlined-argument.ll becomes XFAIL, but for a longer term.
      The current algorithm for detecting that a variable has a single-location
      doesn't work in this scenario (inlined function in multiple blocks), only other
      bugs were making this test work. fission-ranges.ll gets slightly refreshed too,
      as the location of "p" is now correctly determined to be a single location.
      
      Differential Revision: https://reviews.llvm.org/D61940
      
      llvm-svn: 362951
      bcff4172
    • Sam McCall's avatar
      Re-land "[CodeComplete] Improve overload handling for C++ qualified and ref-qualified methods." · 3dea5272
      Sam McCall authored
      ShadowMapEntry is now really, truly a normal class.
      
      llvm-svn: 362950
      3dea5272
    • Sanjay Patel's avatar
      [InstCombine] add tests for fabs() with unordered preds; NFC · 07bba688
      Sanjay Patel authored
      llvm-svn: 362949
      07bba688