- Nov 23, 2022
-
-
Benjamin Kramer authored
This reverts commit cf624b23. It triggers crashes in clang, see the comments on github on the original change.
-
David Green authored
I noticed these were missing, so this adds Host identifiers for cortex-a55, cortex-a510, cortex-a710 and cortex-x2, taken from their respective TRMs. Differential Revision: https://reviews.llvm.org/D138497
-
zhongyunde authored
* For case bcmp9, there is extras AND and EXTEND int the chain of OR/XOR, which prevent the transform, so enable the optimize before legalization. * The key IR frag related: t37: i32,ch = load<(load (s8) from %ir.4), anyext from i8> t0, t11, undef:i64 t12: i64 = add t4, Constant:i64<8> t38: i32,ch = load<(load (s8) from %ir.5), anyext from i8> t0, t12, undef:i64 t39: i32 = xor t37, t38 t40: i64 = any_extend t39 t42: i64 = and t40, Constant:i64<255> Depends on D138398 to fix combine_setcc_glue Reviewed By: dmgreen, bcl5980 Differential Revision: https://reviews.llvm.org/D137936 -
Haohai Wen authored
Avx512 permute latency should be 3 instead of 1. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D138427
-
Stefan Gränitz authored
This reverts commit a37807ac. Differential Revision: https://reviews.llvm.org/D137942
-
Stefan Gränitz authored
When ObjCARCOpt::run() returned early, Changed and CFGChanged were never initialized. CFGChanged is read unconditionally afterwards. This came up in the course of D137942.
-
Benjamin Kramer authored
-
Alex Richardson authored
The ctype mask for newlib/picolibc is fully saturated, so __regex_word has to overlap with one of the values. This commit uses the same workaround as bionic did (uint16_t for char_class_type inside regex_traits). It should be possible to have libc++ provide the default rune table instead, but that will require a new mechanism to detect newlib inside __config since the header defining the newlib/picolibc macros has not been included yet inside __config. Doing it this way also avoids duplicating the ctype table for newlib, reducing the global data size. Differential Revision: https://reviews.llvm.org/D138195
-
Alex Richardson authored
I noticed a an assertion error when building MIPS code that loaded from NULL. Loading from NULL ends up being a load with maximum alignment, and due to integer truncation the value maximum was interpreted as 0 and the assertion in MipsDAGToDAGISel::Select() failed. This previously happened to work, but the maximum alignment was increased in df84c1fe, so it no longer fits into a 32 bit integer. Instead of just fixing the one MIPS case, this patch removes all uses of the deprecated getAlignment() call and replaces them with getAlign(). Differential Revision: https://reviews.llvm.org/D138420
-
Alex Richardson authored
This simply calls getTargetAddressSpace(Q.getAddressSpace()) and there are only two callers, so adjust those caller instead.
-
Kito Cheng authored
Introduce a RVVTypeCache to hold the cache instead of using a local static variable to maintain a cache. Also made construct of RVVType to private, make sure that could be only created by a cache manager. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D138429
-
Akshay Baviskar authored
Adds RegionBranchOpInterface for AffineIf Op and tests it using buffer deallocation pass. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D130962
-
Matthias Springer authored
CollapseShapeOp/ExpandShapeOp that do not change the rank (or increase/reduce it) are invalid. Differential Revision: https://reviews.llvm.org/D138498
-
Nicolas Vasilache authored
This revision refactors and cleans up a bunch of infra related to vector, shapes and indexing into more reusable APIs. Differential Revision: https://reviews.llvm.org/D138501
-
Max Kazantsev authored
-
WuXinlong authored
This patch add the instructions of Zcf extension. Zcf is a subset of C Ext which include the single-precision floating-point instructions. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D134176
-
Tom Stellard authored
Reviewed By: mgorny Differential Revision: https://reviews.llvm.org/D137854
-
Michał Górny authored
Fix Findzstd CMake to handle shared libraries on OpenBSD correctly. This userland does not use shared library symlinks without SOVERSION, so the result of find_library() does not ever end with zstd_SHARED_LIBRARY_SUFFIX. To work around this, reverse the logic to compare the result against zstd_STATIC_LIBRARY_SUFFIX and assume shared library otherwise. While at it, fix the conditions not to fall back to "result is static library" path if it actually was recognized as a shared library but zstd_shared target already existed. Fixes #59056 Differential Revision: https://reviews.llvm.org/D138361
-
Fangrui Song authored
We can add .riscv.attributes synthetic section here in the future.
-
Philip Reames authored
Most of the code for this was taken from https://reviews.llvm.org/D133552, with one bug fix by me. I'm landing the plumbing so that we can focus on the cost model pieces in the review.
-
Daniel Rodríguez Troitiño authored
The exports trie used to be pointed by the information in LC_DYLD_INFO, but when chained fixups are present, the exports trie is pointed by LC_DYLD_EXPORTS_TRIE instead. Modify ObjCopy code to calculate the right offset and size needed depending on the existence of LC_DYLD_INFO or LC_DYLD_EXPORTS_TRIE, read the exports from either of those places, and write the export information as pointed to either of those places. Depends on D134571. Reviewed By: alexander-shaposhnikov Differential Revision: https://reviews.llvm.org/D137879
-
Matt Arsenault authored
-
Matt Arsenault authored
Equality is directly stated as true in the LangRef, and I believe this works for every compare type.
-
Matt Arsenault authored
-
Haohai Wen authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D138485
-
Ruiling Song authored
global/scratch_load will return in order they are issued. No need to insert a s_waitcnt for WAW hazard. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D138476
-
Daniel Rodríguez Troitiño authored
The exports trie used to be pointed by the information in LC_DYLD_INFO, but when chained fixups are present, the exports trie is pointed by LC_DYLD_EXPORTS_TRIE instead. Modify the Object library to give access to the information pointed by each of the load commands, and to fallback from one into the other when the exports are requested. Modify ObjectYAML to support dumping the export trie when pointed by LC_DYLD_EXPORTS_TRIE and to parse the existence of a export trie also when the load command is present. This is a split of D134250 with improvements on top. Reviewed By: alexander-shaposhnikov Differential Revision: https://reviews.llvm.org/D134571
-
Phoebe Wang authored
This fixes #58685 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D138428
-
Xiang Li authored
Fix build error caused by createPrintModulePass moving to diffrent header.
-
Ben Shi authored
A scalar which exceeds 4 bytes should be returned via stack, other than via registers, on an AVRTiny device. Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D138201
-
Nico Weber authored
config.llvm_plugin_ext is used by lit to set the %pluginext substitution. bolt's tests don't use %pluginext, so they don't need to set config.llvm_plugin_ext. Differential Revision: https://reviews.llvm.org/D138325
-
chenglin.bi authored
or (xor x, y), x --> or x, y or (xor x, y), y --> or x, y or (xor x, y), (and x, y) --> or x, y or (xor x, y), (or x, y) --> or x, y Reviewed By: foad Differential Revision: https://reviews.llvm.org/D138401
-
Fangrui Song authored
GCC only defines `__ppc64__` for darwin while the darwin support has been removed from llvm-project. The existence of `__ppc64__` makes some software think we are compiling for big-endian PowerPC Mac; also it lures users to write code which is not portable to GCC. It is straightforward if a distro wants to keep the macro: add `-D__ppc64__=1` to a Clang configuration file. Reviewed By: thesamesam, nemanjai Differential Revision: https://reviews.llvm.org/D137511
-
Peiming Liu authored
Differential Revision: https://reviews.llvm.org/D138533
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Fangrui Song authored
This relands the ODR indicator part of D138095 (reverted by 06c74b5e): a `__odr_asan_gen_*` symbol should use a mangled name as its associated symbol does.
-
Alexander Yermolovich authored
Now that BOLT supports DWARF5 re-enabling it for these two tests. This is update to https://reviews.llvm.org/D125366 Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D138338
-
Fangrui Song authored
Broke 2/3 tests on macOS which seem to be related to `free(demangled_name)` in DemangleCXXABI.
-
Roman Lebedev authored
Otherwise, `compiler-rt/test/asan/TestCases/pr33372.cpp` fails with an assertion: ``` clang-16: /repositories/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:11988: void llvm::SelectionDAG::createOperands(llvm::SDNode *, ArrayRef<llvm::SDValue>): Assertion `SDNode::getMaxNumOperands() >= Vals.size() && "too many operands to fit into SDNode"' failed. ``` I'm not sure if this should be even more conservative, or if we have a named constant for this in middle-end.
-