1. Mar 29, 2019
    • Kang Zhang's avatar
      [PowerPC] Add the support for __builtin_setrnd() in clang · e5ac385f
      Kang Zhang authored
      Summary:
      PowerPC64/PowerPC64le supports the builtin function __builtin_setrnd to set the floating point rounding mode. This function will use the least significant two bits of integer argument to set the floating point rounding mode.
      double __builtin_setrnd(int mode);
      The effective values for mode are:
      0 - round to nearest
      1 - round to zero
      2 - round to +infinity
      3 - round to -infinity
      Note that the mode argument will modulo 4, so if the int argument is greater than 3, it will only use the least significant two bits of the mode. Namely, builtin_setrnd(102)) is equal to builtin_setrnd(2).
      
      Reviewed By: jsji
      
      Differential Revision: https://reviews.llvm.org/D59403
      
      llvm-svn: 357242
      e5ac385f
    • Kang Zhang's avatar
      [PowerPC] Add the support for __builtin_setrnd() · 05f78b35
      Kang Zhang authored
      Summary:
      PowerPC64/PowerPC64le supports the builtin function __builtin_setrnd to set the floating point rounding mode. This function will use the least significant two bits of integer argument to set the floating point rounding mode.
      double __builtin_setrnd(int mode);
      The effective values for mode are:
      0 - round to nearest
      1 - round to zero
      2 - round to +infinity
      3 - round to -infinity
      Note that the mode argument will modulo 4, so if the int argument is greater than 3, it will only use the least significant two bits of the mode. Namely, builtin_setrnd(102)) is equal to builtin_setrnd(2).
      
      Reviewed By: jsji
      
      Differential Revision: https://reviews.llvm.org/D59405
      
      llvm-svn: 357241
      05f78b35
    • Pavel Labath's avatar
      [Sanitizer] Add interceptor for wctomb · 711bea9d
      Pavel Labath authored
      Summary:
      This is required to avoid msan false positives for code using this
      function (although generally one should avoid using this function in
      favor of wcrtomb).
      
      Reviewers: eugenis, EricWF, vitalybuka
      
      Subscribers: srhines, kubamracek, fedor.sergeev, delcypher, llvm-commits, #sanitizers
      
      Tags: #llvm, #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D59548
      
      llvm-svn: 357240
      711bea9d
    • Clement Courbet's avatar
      [ScheduleDAG] Move `Topo` and `addEdge` to base class. · b70355f0
      Clement Courbet authored
      Some DAG mutations can only be applied to `ScheduleDAGMI`, and have to
      internally cast a `ScheduleDAGInstrs` to `ScheduleDAGMI`.
      
      There is nothing actually specific to `ScheduleDAGMI` in `Topo`.
      
      llvm-svn: 357239
      b70355f0
    • Fangrui Song's avatar
      [llvm-objcopy] Delete two redundant reinterpret_cast. NFC · 5ed0a8bf
      Fangrui Song authored
      llvm-svn: 357238
      5ed0a8bf
    • Jim Lin's avatar
      Test commit. Fix typo. · 421c0942
      Jim Lin authored
      llvm-svn: 357237
      421c0942
    • Michael Liao's avatar
      [Sema] Fix a crash when nonnull checking · ce38992a
      Michael Liao authored
      Summary:
      - If a parameter is used, nonnull checking needs function prototype to
        retrieve the corresponding parameter's attributes. However, at the
        prototype substitution phase when a template is being instantiated,
        expression may be created and checked without a fully specialized
        prototype. Under such a scenario, skip nonnull checking on that
        argument.
      
      Reviewers: rjmccall, tra, yaxunl
      
      Subscribers: javed.absar, kristof.beyls, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D59900
      
      llvm-svn: 357236
      ce38992a
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Insert waterfall loop for vector indexing · 5fddf091
      Matt Arsenault authored
      The register index can only really be an SGPR. Lie that a VGPR index
      is legal, and then rewrite the instruction in a waterfall loop to
      handle the index.
      
      llvm-svn: 357235
      5fddf091
    • Zi Xuan Wu's avatar
      [PowerPC] Strength reduction of multiply by a constant by shift and add/sub in place · 1445b77e
      Zi Xuan Wu authored
      A shift and add/sub sequence combination is faster in place of a multiply by constant. 
      Because the cycle or latency of multiply is not huge, we only consider such following
      worthy patterns.
      
      ```
      (mul x, 2^N + 1) => (add (shl x, N), x)
      (mul x, -(2^N + 1)) => -(add (shl x, N), x)
      (mul x, 2^N - 1) => (sub (shl x, N), x)
      (mul x, -(2^N - 1)) => (sub x, (shl x, N))
      ```
      
      And the cycles or latency is subtarget-dependent so that we need consider the
      subtarget to determine to do or not do such transformation. 
      Also data type is considered for different cycles or latency to do multiply.
      
      Differential Revision: https://reviews.llvm.org/D58950
      
      llvm-svn: 357233
      1445b77e
    • Nico Weber's avatar
      gn build: Add check-clang-tools to run clang-tools-extra lit tests · 2a3f42c9
      Nico Weber authored
      Only runs the clang-tools-extra lit tests; not yet the unit tests.
      
      Add a build file for clangd-indexer too, since it's needed for
      the tests.
      
      Differential Revision: https://reviews.llvm.org/D59955
      
      llvm-svn: 357232
      2a3f42c9
    • Nico Weber's avatar
      Add .py extension to clang-tools-extra lit cfg files · ef7b8423
      Nico Weber authored
      Follow-up to r313892, which did this for clang and llvm.
      
      Differential Revision: https://reviews.llvm.org/D59953
      
      llvm-svn: 357231
      ef7b8423
    • Xing GUO's avatar
      [llvm-readobj] Change variable names to match LLVM-style. NFC. · 09a77fec
      Xing GUO authored
      Summary: This patch helps change variable names to match LLVM-style
      
      Reviewers: jhenderson, Higuoxing
      
      Reviewed By: Higuoxing
      
      Subscribers: rupprecht, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D59931
      
      llvm-svn: 357230
      09a77fec
    • Akira Hatanaka's avatar
      [CodeGen][ObjC] Adjust the addresses passed to calls to synthesized · 8b8d3623
      Akira Hatanaka authored
      copy/move constructor/assignment operator functions for non-trivial C
      structs.
      
      This commit fixes a bug where the offset of struct fields weren't being
      taken into account when computing the addresses passed to calls to the
      special functions.
      
      For example, the copy constructor for S1 (__copy_constructor_8_8_s0_s8)
      would pass the start addresses of the destination and source structs to
      the call to S0's copy constructor (_copy_constructor_8_8_s0) without
      adding the offset of field f1 to the addresses.
      
      typedef struct {
        id f0;
        S0 f1;
      } S1;
      
      void test(S1 s1) {
        S1 t = s1;
      }
      
      rdar://problem/49400610
      
      llvm-svn: 357229
      8b8d3623
    • Akira Hatanaka's avatar
      Fix typos and formatting. NFC. · 801cc327
      Akira Hatanaka authored
      llvm-svn: 357228
      801cc327
    • Florian Hahn's avatar
      Revert Recommit "[DSE] Preserve basic block ordering using OrderedBasicBlock." · 2b85de43
      Florian Hahn authored
      Another buildbot failure
      
      http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/20402
      
      clang-9: /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/llvm/include/llvm/ADT/DenseMap.h:1228: llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>::value_type* llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>::operator->() const [with KeyT = const llvm::Instruction*; ValueT = unsigned int; KeyInfoT = llvm::DenseMapInfo<const llvm::Instruction*>; Bucket = llvm::detail::DenseMapPair<const llvm::Instruction*, unsigned int>; bool IsConst = false; llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>::pointer = llvm::detail::DenseMapPair<const llvm::Instruction*, unsigned int>*; llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>::value_type = llvm::detail::DenseMapPair<const llvm::Instruction*, unsigned int>]: Assertion `isHandleInSync() && "invalid iterator access!"' failed.
      
      0.	Program arguments: /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/stage1.install/bin/clang-9 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name ArchiveCommandLine.cpp -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu skylake-avx512 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/sandbox/build/MultiSource/Benchmarks/7zip/Output/ArchiveCommandLine.llvm.gcno -resource-dir /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/stage1.install/lib/clang/9.0.0 -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/sandbox/build/MultiSource/Benchmarks/7zip -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/include -I ../../../include -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D NDEBUG -D BREAK_HANDLER -D UNICODE -D _UNICODE -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip/C -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip/CPP -I . -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D NDEBUG -D _REENTRANT -D ENV_UNIX -D _7ZIP_LARGE_PAGES -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/local/include -internal-isystem /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/stage1.install/lib/clang/9.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -std=gnu++98 -fdeprecated-macro -fdebug-compilation-dir /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/sandbox/build/MultiSource/Benchmarks/7zip -ferror-limit 19 -fmessage-length 0 -pthread -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o Output/ArchiveCommandLine.llvm.o -x c++ /home/ssglocal/clang-cmake-x86_64-sde-avx512-linux/clang-cmake-x86_64-sde-avx512-linux/test/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/UI/Common/ArchiveCommandLine.cpp -faddrsig
      
      This reverts r357222 (git commit 64cccfcc)
      
      llvm-svn: 357227
      2b85de43
    • Thomas Lively's avatar
      [WebAssembly] Merge used feature sets, update atomics linkage policy · 3f34e1b8
      Thomas Lively authored
      Summary:
      It does not currently make sense to use WebAssembly features in some functions
      but not others, so this CL adds an IR pass that takes the union of all used
      feature sets and applies it to each function in the module. This allows us to
      prevent atomics from being lowered away if some function has opted in to using
      them. When atomics is not enabled anywhere, we detect whether there exists any
      atomic operations or thread local storage that would be stripped and disallow
      linking with objects that contain atomics if and only if atomics or tls are
      stripped. When atomics is enabled, mark it as used but do not require it of
      other objects in the link. These changes allow libraries that do not use atomics
      to be built once and linked into both single-threaded and multithreaded
      binaries.
      
      Reviewers: aheejin, sbc100, dschuff
      
      Subscribers: jgravelle-google, hiraditya, sunfish, jfb, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D59625
      
      llvm-svn: 357226
      3f34e1b8
    • Derek Schuff's avatar
      Revert "[WebAssembly] Improve invalid relocation error message" · 0c9ea105
      Derek Schuff authored
      This reverts commit 0805ec5f.
      
      llvm-svn: 357225
      0c9ea105
    • Derek Schuff's avatar
      Revert "[WebAssembly] Improve invalid relocation error message" · ac727e86
      Derek Schuff authored
      Also Revert "[WebAssembly] Fix typo from rL357143"
      
      This reverts commit 0805ec5f and
      a9958fc3
      (rL357143 and rL357144)
      
      They cause failures with address-taken extern (JS) functions
      in emscripten.
      
      llvm-svn: 357224
      ac727e86
    • Rui Ueyama's avatar
      Remove a duplicate assignment. NFC. · 6528f2ea
      Rui Ueyama authored
      llvm-svn: 357223
      6528f2ea
    • Florian Hahn's avatar
      Recommit "[DSE] Preserve basic block ordering using OrderedBasicBlock." · 64cccfcc
      Florian Hahn authored
      Recommitting after addressing a buildbot failure.
      
      This reverts commit c87869eb.
      
      llvm-svn: 357222
      64cccfcc
    • Jordan Rupprecht's avatar
      [llvm-readobj] Fix formatting of unknown note types · 1dc28b6d
      Jordan Rupprecht authored
      llvm-svn: 357221
      1dc28b6d
    • Reid Kleckner's avatar
      [MS] Make __iso_volatile_* available on all targets · 73253bde
      Reid Kleckner authored
      Future versions of MSVC make these intrinsics available on x86 & x64,
      according to:
      http://lists.llvm.org/pipermail/cfe-dev/2019-March/061711.html
      
      The purpose of these builtins is to emit plain, non-atomic, volatile
      stores when /volatile:ms (-cc1 -fms-volatile) is enabled.
      
      llvm-svn: 357220
      73253bde
    • Puyan Lotfi's avatar
      [yaml2obj] Fixing opening empty yaml files. · 6c826957
      Puyan Lotfi authored
      Essentially echo "" | yaml2obj crashes. This patch attempts to trim whitespace
      and determine if the yaml string in the file is empty or not. If the input is
      empty then it will not properly print out an error message and return an error
      code.
      
      Differential Revision: https://reviews.llvm.org/D59964
      
      A    test/tools/yaml2obj/empty.yaml
      M    tools/yaml2obj/yaml2obj.cpp
      
      llvm-svn: 357219
      6c826957
    • Rumeet Dhindsa's avatar
      Update lit config for ld.lld command to match "ld\.lld" instead of trying to... · da063e64
      Rumeet Dhindsa authored
      Update lit config for ld.lld command to match "ld\.lld" instead of trying to match respective regex. (It was able to work with ld-lld and ld1lld as well)
      
      Differential Revision: https://reviews.llvm.org/D59962
      
      llvm-svn: 357218
      da063e64
    • Florian Hahn's avatar
      [LSR] Fix signed overflow in GenerateCrossUseConstantOffsets. · 45682fd6
      Florian Hahn authored
      For the attached test case, unchecked addition of immediate starts and
      ends overflows, as they can be arbitrary i64 constants.
      
      Proof: https://rise4fun.com/Alive/Plqc
      
      Reviewers: qcolombet, gilr, efriedma
      
      Reviewed By: efriedma
      
      Differential Revision: https://reviews.llvm.org/D59218
      
      llvm-svn: 357217
      45682fd6
    • Rumeet Dhindsa's avatar
      Fixed the lld test using ld-lld command to use ld.lld instead. · 45bd9b25
      Rumeet Dhindsa authored
      Differential Revision: https://reviews.llvm.org/D59962
      
      llvm-svn: 357216
      45bd9b25
    • Yonghong Song's avatar
      [BPF] add proper multi-dimensional array support · 360a4e2c
      Yonghong Song authored
      
      
      For multi-dimensional array like below
        int a[2][3];
      the previous implementation generates BTF_KIND_ARRAY type
      like below:
        . element_type: int
        . index_type: unsigned int
        . number of elements: 6
      
      This is not the best way to represent arrays, esp.,
      when converting BTF back to headers and users will see
        int a[6];
      instead.
      
      This patch generates proper support for multi-dimensional arrays.
      For "int a[2][3]", the two BTF_KIND_ARRAY types will be
      generated:
        Type #n:
          . element_type: int
          . index_type: unsigned int
          . number of elements: 3
        Type #(n+1):
          . element_type: #n
          . index_type: unsigned int
          . number of elements: 2
      
      The linux kernel already supports such a multi-dimensional
      array representation properly.
      
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      
      Differential Revision: https://reviews.llvm.org/D59943
      
      llvm-svn: 357215
      360a4e2c
    • Eli Friedman's avatar
      [MC] Fix floating-point literal lexing. · 3dd72ea8
      Eli Friedman authored
      This patch has three related fixes to improve float literal lexing:
      
      1. Make AsmLexer::LexDigit handle floats without a decimal point more
         consistently.
      2. Make AsmLexer::LexFloatLiteral print an error for floats which are
         apparently missing an "e".
      3. Make APFloat::convertFromString use binutils-compatible exponent
         parsing.
      
      Together, this fixes some cases where a float would be incorrectly
      rejected, fixes some cases where the compiler would crash, and improves
      diagnostics in some cases.
      
      Patch by Brandon Jones.
      
      Differential Revision: https://reviews.llvm.org/D57321
      
      llvm-svn: 357214
      3dd72ea8
    • Craig Topper's avatar
      [SelectionDAGBuilder] Fix 80 column violation. NFC · ea626d8b
      Craig Topper authored
      llvm-svn: 357213
      ea626d8b
    • Eli Friedman's avatar
      [InterleavedAccessPass] Don't increase the number of bytes loaded. · 96f295e2
      Eli Friedman authored
      Even if the interleaving transform would otherwise be legal, we shouldn't
      introduce an interleaved load that is wider than the original load: it might
      have undefined behavior.
      
      It might be possible to perform some sort of mask-narrowing transform in
      some cases (using a narrower interleaved load, then extending the
      results using shufflevectors).  But I haven't tried to implement that,
      at least for now.
      
      Fixes https://bugs.llvm.org/show_bug.cgi?id=41245 .
      
      Differential Revision: https://reviews.llvm.org/D59954
      
      llvm-svn: 357212
      96f295e2
    • Florian Hahn's avatar
      Revert [DSE] Preserve basic block ordering using OrderedBasicBlock. · c87869eb
      Florian Hahn authored
      This reverts r357208 (git commit c0bfd37d)
      
      This causes a buildbot failure:  http://lab.llvm.org:8011/builders/clang-with-thin-lto-ubuntu/builds/16124
      
      FAILED: lib/IR/CMakeFiles/LLVMCore.dir/IRBuilder.cpp.o
      /home/buildslave/ps4-buildslave1/clang-with-thin-lto-ubuntu/install/stage2/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/IR -I/home/buildslave/ps4-buildslave1/clang-with-thin-lto-ubuntu/llvm.src/lib/IR -Iinclude -I/home/buildslave/ps4-buildslave1/clang-with-thin-lto-ubuntu/llvm.src/include -fPIC -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -flto=thin -O3    -UNDEBUG  -fno-exceptions -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/IRBuilder.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/IRBuilder.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/IRBuilder.cpp.o -c /home/buildslave/ps4-buildslave1/clang-with-thin-lto-ubuntu/llvm.src/lib/IR/IRBuilder.cpp
      clang-9: /home/buildslave/ps4-buildslave1/clang-with-thin-lto-ubuntu/llvm.src/lib/Analysis/OrderedBasicBlock.cpp:38: bool llvm::OrderedBasicBlock::comesBefore(const llvm::Instruction *, const llvm::Instruction *): Assertion `!(LastInstFound == BB->end() && NextInstPos != 0) && "Instruction supposed to be in NumberedInsts"' failed.
      
      llvm-svn: 357211
      c87869eb
    • Shafik Yaghmour's avatar
      Fix for regression test, since we rely on the formatter for std::vector in the... · a1f1ff88
      Shafik Yaghmour authored
      Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category.
      
      See differential https://reviews.llvm.org/D59847 for initial change that this fixes
      
      llvm-svn: 357210
      a1f1ff88
    • Michael Kruse's avatar
      Apply include-what-you-use #include removal suggestions. NFC. · 031bb165
      Michael Kruse authored
      This removes unused includes (and forward declarations) as
      suggested by include-what-you-use. If a transitive include of a removed
      include is required to compile a file, I added the required header (or
      forward declaration if suggested by include-what-you-use).
      
      This should reduce compilation time and reduce the number of iterative
      recompilations when a header was changed.
      
      llvm-svn: 357209
      031bb165
    • Florian Hahn's avatar
      [DSE] Preserve basic block ordering using OrderedBasicBlock. · c0bfd37d
      Florian Hahn authored
      By extending OrderedBB to allow removing and replacing cached
      instructions, we can preserve OrderedBBs in DSE easily. This eliminates
      one source of quadratic compile time in DSE.
      
      Fixes PR38829.
      
      Reviewers: rnk, efriedma, hfinkel
      
      Reviewed By: efriedma
      
      Differential Revision: https://reviews.llvm.org/D59789
      
      llvm-svn: 357208
      c0bfd37d
    • Jim Ingham's avatar
      Fix the swig typemap for "uint32_t *versions, uint32_t num_versions". · 43aaafc0
      Jim Ingham authored
      It was making a list of a certain size but not always filling in that
      many elements, which would lead to a crash iterating over the list.
      
      Differential Revision: https://reviews.llvm.org/D59913
      
      llvm-svn: 357207
      43aaafc0
    • Florian Hahn's avatar
      [MemDepAnalysis] Allow caller to pass in an OrderedBasicBlock. · 6c302436
      Florian Hahn authored
      If the caller can preserve the OBB, we can avoid recomputing the order
      for each getDependency call.
      
      Reviewers: efriedma, rnk, hfinkel
      
      Reviewed By: rnk
      
      Differential Revision: https://reviews.llvm.org/D59788
      
      llvm-svn: 357206
      6c302436
    • Alexey Bataev's avatar
      [OPENMP]Add check for undefined behavior with thread allocators on · 471171c4
      Alexey Bataev authored
      target and task-based directives.
      
      According to OpenMP 5.0, 2.11.4 allocate Clause, Restrictions, For task,
      taskloop or target directives, allocation requests to memory allocators
      with the trait access set to thread result in unspecified behavior.
      Patch introduces a check for omp_thread_mem_alloc predefined allocator
      on target- and trask-based directives.
      
      llvm-svn: 357205
      471171c4
    • Simon Pilgrim's avatar
      [SLP][X86] Add tests showing failure to commute icmp/fcmp by swapping predicate · ceb3de5d
      Simon Pilgrim authored
      By swapping icmp/fcmp predicates we can commute their operands to improve vectorization
      
      llvm-svn: 357204
      ceb3de5d
    • Louis Dionne's avatar
      [pstl] Uglify internal names of the library · 0408a789
      Louis Dionne authored
      llvm-svn: 357203
      0408a789
    • Simon Pilgrim's avatar
      [SLP][X86] Add tests showing failure to commute icmp/fcmp operands · 66b5e322
      Simon Pilgrim authored
      Some predicates are fully commutative - we should be able to easily commute their operands to improve vectorization
      
      llvm-svn: 357202
      66b5e322