SuccessChanges

Summary

  1. SVML support for log2 (details)
  2. [lldb] avoid assert in threadsanitizer tests on linux (details)
  3. [test] Use %t instead of %T to remove race conditions between config-file3.c and target-override.c (details)
  4. Replace CRLF with LF; NFC (details)
Commit d1be928d23fe6b6770be007c7fd0753ca4d17516 by aktoon
SVML support for log2

Although LLVM supports vectorization of loops containing log2, it did not support using SVML implementation of it. Added support so that when clang is invoked with -fveclib=SVML now an appropriate SVML library log2 implementation will be invoked.

Follow up on: https://reviews.llvm.org/D77114

Tests:
Added unit tests to svml-calls.ll, svml-calls-finite.ll. Can be run with llvm-lint.
Created a simple c++ file that tests log2, and used clang+ to build it, and output final assembly.

Reviewed By: wenlei, craig.topper

Differential Revision: https://reviews.llvm.org/D86730
The file was modifiedllvm/include/llvm/Analysis/VecFuncs.def (diff)
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/svml-calls-finite.ll (diff)
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/svml-calls.ll (diff)
Commit f369d51896e1c0f61df253b116c42771479549df by l.lunak
[lldb] avoid assert in threadsanitizer tests on linux

The tests are unsupported on linux, but they assert in
Thread::GetStopDescriptionRaw() because of empty stop reason
description. And it is empty because
InstrumentationRuntimeTSan::NotifyBreakpointHit() fails
to get report from InstrumentationRuntimeTSan::RetrieveReportData(),
which is possibly(?) the reason why this is unsupported on linux.
Add a dummy stop reason description for this case, which changes
the test result from failing to unsupported.
The file was modifiedlldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp (diff)
Commit 6e09722b27ed4d48dfc668b0efc2aed88d701ebf by maskray
[test] Use %t instead of %T to remove race conditions between config-file3.c and target-override.c

Both tests operate on `%T/testbin`. If the two tests run concurrently,
one may fail.

This is likely the root cause of flaky failures reported by
https://lists.llvm.org/pipermail/llvm-dev/2020-September/144781.html

https://llvm.org/docs/CommandGuide/lit.html says:

`%T parent directory of %t (not unique, deprecated, do not use)`

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D87103
The file was modifiedclang/test/Driver/config-file3.c (diff)
The file was modifiedclang/test/Driver/target-override.c (diff)
Commit a09eef113f171809c642d790100799bc529011a9 by bryan.chan
Replace CRLF with LF; NFC
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/vscale-getelementptr.ll (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/math-1.ll (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/rint.ll (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/trunc.ll (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/round.ll (diff)