- Apr 21, 2023
-
-
Nikita Popov authored
This pass makes control-flow changes, but only via LoopSimplify and LoopVersioning utilities, which perserve DT and LI.
-
Matt Arsenault authored
Leave DAZ handling for a future change.
-
Matt Arsenault authored
We should be able to recognize > 0, < 0 indicates the sign.
-
Ilya Biryukov authored
This reverts commit 67b298f6. We got linker errors with undefined symbols during a compiler release and tracked it down to this change. I am in the process of understanding what is happening and getting a reproducer. Sorry for reverting this again. I will reopen #61065 until we fix this.
-
Manuel Klimek authored
'else' was dropped accidentally in 398cddf6. Patch by Jared Grubb. Differential revision: https://reviews.llvm.org/D146310
-
David Spickett authored
Previously if a register had fields we would always print them after the value if the register was asked for by name. ``` (lldb) register read MDCR_EL3 MDCR_EL3 = 0x00000000 = { ETBAD = 0 <...> RLTE = 0 } ``` This can be quite annoying if there are a whole lot of fields but you want to see the register in a specific format. ``` (lldb) register read MDCR_EL3 -f i MDCR_EL3 = 0x00000000 unknown udf #0x0 = { ETBAD = 0 <...lots of fields...> ``` Since it pushes the interesting bit far up the terminal. To solve this, don't print fields if the user passes --format. If they're doing that then I think it's reasonable to assume they know what they want and only want to see that output. This also gives users a way to silence fields, but not change the format. By doing `register read foo -f x`. In case they are not useful or perhaps they are trying to work around a crash. I have customised the help text for --format for register read to explain this: ``` -f <format> ( --format <format> ) Specify a format to be used for display. If this is set, register fields will not be dispayed. ``` Reviewed By: jasonmolenda Differential Revision: https://reviews.llvm.org/D148790 -
Jorge Pinto Sousa authored
-Wcast-qual does not trigger on the following code in Clang, but does in GCC. const auto i = 42; using T = int*; auto p = T(&i); The expected behavior is that a functional cast should trigger the warning the same as the equivalent C cast because the meaning is the same, and nothing about the functional cast makes it easier to recognize that a const_cast is occurring. Fixes https://github.com/llvm/llvm-project/issues/62083 Differential Revision: https://reviews.llvm.org/D148276
-
Alexis Engelke authored
Some applications make heavy use of the crc32 operation (e.g., as part of a hash function), so having a FastISel path avoids fallbacks to SelectionDAG and improves compile times, in our case by ~1.5%. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D148023
-
Max Kazantsev authored
Patch by Aleksandr Popov! Differential Revision: https://reviews.llvm.org/D148227
-
Nikita Popov authored
LICM does not use ORE from the pass manager, it constructs its own instance. As such, explicitly requiring the analysis in the pipeline is unnecessary.
-
Louis Dionne authored
We don't have `c++` anymore in the Docker image, but the script does require $CXX to be in the environment so that should always work. Differential Revision: https://reviews.llvm.org/D148830
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Nikita Popov authored
LICM doesn't use BFI anymore, so requesting BFI in these loop pass adaptors is just a waste of compile-time.
-
Nikita Popov authored
-
Nikita Popov authored
-
Max Kazantsev authored
Simplify parseRangeCheckICmp: - If RHS is loop-variant, swap LHS/RHS and swap predicate - all checks are either IV >(=) const or IV <(=) RHS (maybe not const) Patch by Aleksandr Popov! Differential Revision: https://reviews.llvm.org/D148720
-
Igor Kirillov authored
This commit adds support for scalable vector types in theComplexDeinterleaving pass, allowing it to recognize and handle `llvm.vector.interleave2` and `llvm.vector.deinterleave2` intrinsics for both fixed and scalable vectors Differential Revision: https://reviews.llvm.org/D147451
-
Max Kazantsev authored
Fix case when FlattenCFGOpt combines the conditions but doesn't update branch with a new combined condition. It happens when one of the combinable condition is inverted and has more then 1 user Patch by Aleksandr Popov! Differential Revision: https://reviews.llvm.org/D148707
-
Max Kazantsev authored
FlattenCFGOpt combines the conditions but doesn't update branch with a new combined condition. It happens when one of the combinable condition is inverted and has more then 1 user. Patch by Aleksandr Popov! Differential Revision: https://reviews.llvm.org/D148706
-
Akshay Khadse authored
This change fixes static code analysis warnings Reviewed By: skan Differential Revision: https://reviews.llvm.org/D148815
-
Nikolas Klauser authored
We decided to integrate the PSTL into our own headers and only share the backend impletementations. This is a first step in that direction, specifically it copies the PSTL headers into the libc++ structure. Reviewed By: ldionne, #libc Spies: rodgert, mikhail.ramalho, jplehr, bcain, h-vetinari, Mordante, rarutyun, var-const, sstefan1, pcwang-thead, libcxx-commits, arichardson, mgrang, miyuki Differential Revision: https://reviews.llvm.org/D141779
-
Shengchen Kan authored
-
Max Kazantsev authored
-
Carlos Alberto Enciso authored
This reverts commit b74aeacc. Note: The author (Orlando) asked to revert this commit.
-
Nikita Popov authored
Replace the custom libomp_check_linker_flag() implementation with llvm_check_compiler_linker_flag() from the common cmake utils. Due to the way the custom implementation is implemented (capturing output from an entire nested cmake invocation) it can easily end up incorrectly detecting flags as unavailable, e.g. because "error", "unknown" or similar occurs inside compiler flags, the directory name, etc. Fixes https://github.com/llvm/llvm-project/issues/62240. Differential Revision: https://reviews.llvm.org/D148798
-
Andrzej Warzynski authored
This patch updates the vectorisation of the extract Op so that the permutation map for the transfer_read Op is defined explicitly by the vectoriser (as opposed to being constructed implicitly by the transfer_read builder). This change is needed for cases where the rank of the source tensor is lower than the rank of the output vector generated by the vectoriser: ```mlir %17 = vector.transfer_read %arg1[%14, %16], %cst_4 {in_bounds = [true, true]} : tensor<257x24xf32>, vector<1x1x4xf32> ``` In cases like this, the vectorize will create the following permutation map: ``` (d0, d1) -> (0, d0, d1) ``` In other cases the behaviour remains unchanged. Fixes https://github.com/openxla/iree/issues/13036. That's also where the test case was extracted from. Differential Revision: https://reviews.llvm.org/D148537 -
Jay Foad authored
Fixes the following building errors, happening with official Android prebuilt clang 14 shipped with Android 13: external/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:5491:13: error: no viable constructor or deduction guide for deduction of template arguments of 'tuple' ? std::tuple(HSAMD::V3::AssemblerDirectiveBegin, ^ ... external/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:5493:13: error: no viable constructor or deduction guide for deduction of template arguments of 'tuple' : std::tuple(HSAMD::AssemblerDirectiveBegin, ^ Fixes: 6443c0ee ("[AMDGPU] Stop using make_pair and make_tuple. NFC.") Patch by Mauro Rossi! Differential Revision: https://reviews.llvm.org/D142839 -
Dominik Adamski authored
Work group size attribute was set in Clang specific class. That's why we cannot reuse this code in Flang. If we move setting of this attribute to OpenMPIRBuilder, then we can reuse this code in Flang and Clang. Function createOffloadEntry from OpenMPIRBuilder is already used by Clang (via OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata function). Differential Revision: https://reviews.llvm.org/D148525 Reviewed By: jdoerfert
-
Mehdi Amini authored
Revert "Fix handling of special and large vals in expand pattern for `round`" and "Add pattern that expands `math.roundeven` into `math.round` + arith" This reverts commit 8d2bae9a and commit ab2fc952. Tests are broken on Mac M2
-
Serguei Katkov authored
The pass uses ReachingDefAnalysis which has no information about instructions in dead blocks. So do not process them. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D148329
-
Lang Hames authored
These tests have been failing on 32-bit machines. https://github.com/llvm/llvm-project/issues/62184.
-
Lang Hames authored
-
Akshay Khadse authored
This change fixes some static code analysis warnings. Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D148811
-
Shilei Tian authored
Currently we don't check call backs for global variable simplification. What's more, the only way that we can register a simplification call back for global variable is through its initializer (essentially a `Constant *`). It might not correspond to the right global variable. In this patch, we set up a dedicated simplification map for `GlobalVariable`. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D144749
-
Jie Fu authored
/home/jiefu/llvm-project/lldb/source/Target/PathMappingList.cpp:51:5: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] std::scoped_lock locks(m_mutex, rhs.m_mutex); ^ /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/mutex:692:11: note: add a deduction guide to suppress this warning class scoped_lock ^ /home/jiefu/llvm-project/lldb/source/Target/PathMappingList.cpp:72:3: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] std::scoped_lock locks(m_mutex, rhs.m_mutex); ^ /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/mutex:692:11: note: add a deduction guide to suppress this warning class scoped_lock ^ 2 errors generated. -
Akshay Khadse authored
This change fixes static code analysis errors Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D148813
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
This is a first step towards granularizing `<locale>`. Reviewed By: ldionne, #libc Spies: arichardson, libcxx-commits, mikhail.ramalho Differential Revision: https://reviews.llvm.org/D146397
-