1. Nov 15, 2016
    • Daniel Sanders's avatar
      Revert: r286868 - Test commit · 08714cde
      Daniel Sanders authored
      llvm-svn: 286869
      08714cde
    • Daniel Sanders's avatar
      Test commit · 12432e0b
      Daniel Sanders authored
      llvm-svn: 286868
      12432e0b
    • Tim Northover's avatar
      Revert "ARM: sort register lists by encoding in push/pop instructions." · 1b66f39c
      Tim Northover authored
      This reverts commit 286866. It broke a bot, something to do with exactly which
      templates std::sort accepts.
      
      llvm-svn: 286867
      1b66f39c
    • Tim Northover's avatar
      ARM: sort register lists by encoding in push/pop instructions. · e908ea84
      Tim Northover authored
      For example we were producing
      
          push {r8, r10, r11, r4, r5, r7, lr}
      
      This is misleading (r4, r5 and r7 are actually pushed before the rest), and
      other components (stack folding recently) often forget to deal with the extra
      complexity coming from the different order, leading to miscompiles. Finally, we
      warn about our own code in -no-integrated-as mode without this, which is really
      not a good idea.
      
      llvm-svn: 286866
      e908ea84
    • Michael Kuperstein's avatar
      Give SLP vectorizer credit where it's due. · 03c4c8c0
      Michael Kuperstein authored
      llvm-svn: 286865
      03c4c8c0
    • Marshall Clow's avatar
      87f2f168
    • Sean Fertile's avatar
      [PPC] altivec.h functions for converting half precision to single precision. · a9548937
      Sean Fertile authored
      Adds 2 vector functions for converting from a vector of unsigned short to a
      vector of float. One converts the low 4 halfwords and one converts the high
      4 halfwords.
      
      Differential Revision: https://reviews.llvm.org/D26534
      
      llvm-svn: 286863
      a9548937
    • Sean Fertile's avatar
      [PPC] Add intrinsic mapping to the xscvhpsp instruction · a435e07d
      Sean Fertile authored
      add an intrinsic to expose the 'VSX Scalar Convert Half-Precision to
      Single-Precision' instruction.
      
      Differential review: https://reviews.llvm.org/D26536
      
      llvm-svn: 286862
      a435e07d
    • Adam Nemet's avatar
      [opt-viewer] Don't fail with remarks without debug location · 544220fc
      Adam Nemet authored
      llvm-svn: 286861
      544220fc
    • Changpeng Fang's avatar
      AMDGPU/SI: Support data types other than V4f32 in image intrinsics · 8236fe10
      Changpeng Fang authored
      Summary:
        Extend image intrinsics to support data types of V1F32 and V2F32.
      
        TODO: we should define a mapping table to change the opcode for data type of V2F32 but just one channel is active,
        even though such case should be very rare.
      
      Reviewers:
        tstellarAMD
      
      Differential Revision:
        http://reviews.llvm.org/D26472
      
      llvm-svn: 286860
      8236fe10
    • Kuba Brecka's avatar
      [sanitizer] Max out allowed macOS deployment targets to 10.9 · 41c52889
      Kuba Brecka authored
      It's not a good idea to build the sanitizers with e.g. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12, because some deprecated functions that we intercept will cause build errors. Let's limit the allowed deployment targets to 10.9 (which is the default anyway), and warn when it's set above.
      
      Differential Revision: https://reviews.llvm.org/D26557
      
      llvm-svn: 286859
      41c52889
    • Marshall Clow's avatar
    • Davide Italiano's avatar
      [ELF] Clarify why `lld -flavor gnu` is used. · ccf2fa1c
      Davide Italiano authored
      Pointed out by Rafael!
      
      llvm-svn: 286857
      ccf2fa1c
    • Anastasia Stulova's avatar
      ff0da46a
    • Zvi Rackover's avatar
      [X86] Adding reproducer for pr30981 · 35bb7fda
      Zvi Rackover authored
      llvm-svn: 286855
      35bb7fda
    • Reid Kleckner's avatar
      Remove pwd to fix WinASan bot · d0c64611
      Reid Kleckner authored
      It only slipped in while I was debugging the test case.
      
      llvm-svn: 286854
      d0c64611
    • Zachary Turner's avatar
      [PDB] Add documentation for the DBI Stream. · c316ddcd
      Zachary Turner authored
      Differential Revision: https://reviews.llvm.org/D26552
      
      llvm-svn: 286853
      c316ddcd
    • Zachary Turner's avatar
      32e1edec
    • Bob Wilson's avatar
      Use _Unwind_Backtrace on Apple platforms. · d7bef697
      Bob Wilson authored
      Darwin's backtrace() function does not work with sigaltstack (which was
      enabled when available with r270395) — it does a sanity check to make
      sure that the current frame pointer is within the expected stack area
      (which it is not when using an alternate stack) and gives up otherwise.
      The alternative of _Unwind_Backtrace seems to work fine on macOS, so use
      that when backtrace() fails. Note that we then use backtrace_symbols_fd()
      with the addresses from _Unwind_Backtrace, but I’ve tested that and it
      also seems to work fine. rdar://problem/28646552
      
      llvm-svn: 286851
      d7bef697
    • Reid Kleckner's avatar
      Split strncmp and strncasecmp test and XFAIL one for Windows · 171a7022
      Reid Kleckner authored
      llvm-svn: 286850
      171a7022
    • Anastasia Stulova's avatar
      [OpenCL] Fix for integer parameters of enqueue_kernel · 0df4ac3f
      Anastasia Stulova authored
      Make handling integer parameters more flexible:
      
      - For the number of events argument allow to pass larger
      integers than 32 bits as soon as compiler can prove that
      the range fits in 32 bits. If not, the diagnostic will be given.
      
      - Change type of the arguments specifying the sizes of
      the corresponding block arguments to be size_t.
      
      Review: https://reviews.llvm.org/D26509
      llvm-svn: 286849
      0df4ac3f
    • Reid Kleckner's avatar
      [asan/win] Delay load dbghelp.dll to delay ucrtbase.dll initialization · e1e344ed
      Reid Kleckner authored
      Summary:
      ASan needs to initialize before ucrtbase.dll so that it can intercept
      all of its heap allocations. New versions of dbghelp.dll depend on
      ucrtbase.dll, which means both of those DLLs will initialize before the
      dynamic ASan runtime. By lazily loading dbghelp.dll with LoadLibrary, we
      avoid the issue.
      
      Eventually, I would like to remove our dbghelp.dll dependency in favor
      of always using llvm-symbolizer.exe, but this seems like an acceptable
      interim solution.
      
      Fixes PR30903
      
      Reviewers: etienneb
      
      Subscribers: kubabrecka, mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D26473
      
      llvm-svn: 286848
      e1e344ed
    • Stephan T. Lavavej's avatar
      [libcxx] [test] D26314: Fix MSVC warning C4189 "local variable is initialized but not referenced". · 4dc0ed83
      Stephan T. Lavavej authored
      test/std/depr/depr.c.headers/inttypes_h.pass.cpp
      test/std/input.output/file.streams/c.files/cinttypes.pass.cpp
      test/std/input.output/iostream.forward/iosfwd.pass.cpp
      Add test() to avoid a bunch of void-casts, although we still need a few.
      
      test/std/input.output/iostream.format/quoted.manip/quoted.pass.cpp
      skippingws was unused (it's unclear to me whether this was mistakenly copy-pasted from round_trip() below).
      
      test/std/localization/locale.categories/category.collate/locale.collate/types.pass.cpp
      test/std/localization/locale.categories/category.ctype/facet.ctype.special/types.pass.cpp
      test/std/localization/locale.categories/category.ctype/locale.codecvt/types_char.pass.cpp
      test/std/localization/locale.categories/category.ctype/locale.codecvt/types_wchar_t.pass.cpp
      test/std/localization/locale.categories/category.ctype/locale.ctype/types.pass.cpp
      test/std/localization/locale.categories/facet.numpunct/locale.numpunct/types.pass.cpp
      test/std/localization/locales/locale.global.templates/use_facet.pass.cpp
      When retrieving facets, the references are unused.
      
      test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long.pass.cpp
      test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_unsigned_long.pass.cpp
      "std::ios_base::iostate err = ios.goodbit;" was completely unused here.
      
      test/std/localization/locale.categories/category.time/locale.time.get/time_base.pass.cpp
      test/std/numerics/c.math/ctgmath.pass.cpp
      test/std/numerics/rand/rand.device/entropy.pass.cpp
      test/std/numerics/rand/rand.device/eval.pass.cpp
      test/std/strings/basic.string/string.modifiers/string_copy/copy.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eof.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp
      test/std/thread/futures/futures.promise/dtor.pass.cpp
      test/std/thread/futures/futures.task/futures.task.members/dtor.pass.cpp
      test/std/thread/thread.condition/thread.condition.condvar/wait_for_pred.pass.cpp
      These variables are verifying types but are otherwise unused.
      
      test/std/strings/basic.string/string.capacity/reserve.pass.cpp
      old_cap was unused (it's unclear to me whether it was intended to be used).
      
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/eq.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/lt.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/lt.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/eq.pass.cpp
      test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/lt.pass.cpp
      These tests contained unused characters.
      
      llvm-svn: 286847
      4dc0ed83
    • Mandeep Singh Grang's avatar
      [clang docs] Minor fix in ClangCheck.rst · 39f5e864
      Mandeep Singh Grang authored
      Reviewers: djasper, rengolin
      
      Subscribers: Eugene.Zelenko
      
      Tags: #clang-c
      
      Differential Revision: https://reviews.llvm.org/D26484
      
      llvm-svn: 286846
      39f5e864
    • Adrian Prantl's avatar
      Typo · 1f9ac96c
      Adrian Prantl authored
      llvm-svn: 286845
      1f9ac96c
    • Teresa Johnson's avatar
      Restore "[ThinLTO] Prevent exporting of locals used/defined in module level asm" · 3624bdf6
      Teresa Johnson authored
      This restores the rest of r286297 (part was restored in r286475).
      Specifically, it restores the part requiring adding a dependency from
      the Analysis to Object library (downstream use changed to correctly
      model split BitReader vs BitWriter libraries).
      
      Original description of this part of patch follows:
      
      Module level asm may also contain defs of values. We need to prevent
      export of any refs to local values defined in module level asm (e.g. a
      ref in normal IR), since that also requires renaming/promotion of the
      local. To do that, the summary index builder looks at all values in the
      module level asm string that are not marked Weak or Global, which is
      exactly the set of locals that are defined. A summary is created for
      each of these local defs and flagged as NoRename.
      
      This required adding handling to the BitcodeWriter to look at GV
      declarations to see if they have a summary (rather than skipping them
      all).
      
      Finally, added an ass...
      3624bdf6
    • Sumanth Gundapaneni's avatar
      [Hexagon] Remove unsafe load instructions that affect Stack Slot Coloring · d428cf8b
      Sumanth Gundapaneni authored
      The Stack slot coloring pass removes a store that is followed by a load
      that deal with the same stack slot. The function isLoadFromStackSlot
      is supposed to consider the loads that have no side-effects. This
      patch fixed the issue by removing the unsafe loads from this function
      Eg:
      %vreg0<def> = L2_loadruh_io <fi#15>, 0
      S2_storeri_io <fi#15>, 0, %vreg0
      
      In this case, we load an unsigned extended half word and store this in to
      the same stack slot. The Stack slot coloring pass considers safe to remove
      the store. This patch marked all the non-vector byte and half word loads as
      unsafe.
      
      llvm-svn: 286843
      d428cf8b
    • Sumanth Gundapaneni's avatar
      Fix the unit test darwin-multiarch-arm.c for windows · 348ace26
      Sumanth Gundapaneni authored
      llvm-svn: 286842
      348ace26
    • Stephan Bergmann's avatar
      Handle non-inlined clang::Type::getAs specializations in extract_symbols.py · 06c31f60
      Stephan Bergmann authored
      The existing logic was to discard any symbols representing function template
      instantiations, as the definitions were assumed to be inline. But there are
      three explicit specializations of clang::Type::getAs that are only defined in
      Clang's lib/AST/Type.cpp, and at least the plugin used by the LibreOffice build
      (https://wiki.documentfoundation.org/Development/Clang_plugins) uses those
      functions.
      
      Differential Revision: https://reviews.llvm.org/D26455
      
      llvm-svn: 286841
      06c31f60
    • Teresa Johnson's avatar
      [ThinLTO] Make inline assembly handling more efficient in summary · d5033a45
      Teresa Johnson authored
      Summary:
      The change in r285513 to prevent exporting of locals used in
      inline asm added all locals in the llvm.used set to the reference
      set of functions containing inline asm. Since these locals were marked
      NoRename, this automatically prevented importing of the function.
      
      Unfortunately, this caused an explosion in the summary reference lists
      in some cases. In my particular example, it happened for a large protocol
      buffer generated C++ file, where many of the generated functions
      contained an inline asm call. It was exacerbated when doing a ThinLTO
      PGO instrumentation build, where the PGO instrumentation included
      thousands of private __profd_* values that were added to llvm.used.
      
      We really only need to include a single llvm.used local (NoRename) value
      in the reference list of a function containing inline asm to block it
      being imported. However, it seems cleaner to add a flag to the summary
      that explicitly describes this situation, which is what this patch does.
      
      Reviewers: mehdi_amini
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D26402
      
      llvm-svn: 286840
      d5033a45
    • Tom Stellard's avatar
      Fix build since r286752. · d83eb34e
      Tom Stellard authored
      llvm-svn: 286839
      d83eb34e
  2. Nov 14, 2016