- Jul 24, 2023
-
-
WANG Rui authored
During the construction of SelectionDAG, there are no explicit canonicalization rules to adjust the order of operands for AND nodes. This may prevent the optimization in DAGCombiner::visitANDLike from being triggered. This patch canonicalizes the operands before matches, which can be observed to improve optimization on the RISC-V target architecture. Canonicalize: ``` and(x, add) -> and(add, x) ``` Signed-off-by:
WANG Rui <wangrui@loongson.cn> Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D154760
-
WANG Rui authored
Add tests for (and (add x, c1), (lshr y, c2)). Signed-off-by:
WANG Rui <wangrui@loongson.cn> Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D154808
-
Sander de Smalen authored
NEON `movi` is not valid in Streaming SVE mode, so use an `fmov` instruction instead for zero-initializing a FP value. Reviewed By: hassnaa-arm Differential Revision: https://reviews.llvm.org/D155432
-
Michael Platings authored
This reverts commit 8ac137ac. The code does not compile.
-
pvanhout authored
-
Sindhu Chittireddy authored
Differential Revision: https://reviews.llvm.org/D155776
-
Antonio Frighetto authored
Allow clang driver command-line recording when targeting MachO object files as well. Reviewed-by: sgraenitz Differential Revision: https://reviews.llvm.org/D155716
-
pvanhout authored
Builds on top of 6de2735c to fix remaining issues with iteration order in the MatchTable Combiner backend. See D155789 as well. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155821
-
Yingwei Zheng authored
Fixes https://github.com/llvm/llvm-project/issues/63896 and https://github.com/rust-lang/rust/issues/113757. This patch adds facts implied by llvm.smin/smax/umin/umax intrinsics. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D155412
-
Piotr Zegar authored
Detects and suggests addressing issues with empty catch statements. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D144748
-
Balazs Benics authored
We'll soon branch off, and start releasing clang-17. Here is a patch, adjusting the release notes for what we achieved since the last release. I used this command to inspect the interesting commits: ``` git log --oneline llvmorg-16.0.0..llvm/main \ clang/{lib/StaticAnalyzer,include/clang/StaticAnalyzer} | \ grep -v NFC | grep -v -i revert ``` This filters in CSA directories and filters out NFC and revert commits. Given that in the release-notes, we usually don't put links to commits, I'll remove them from this patch as well. I just put them there to make it easier to review for you. I tried to group the changes into meaningful chunks, and dropped some of the uninteresting commits. I've also dropped the commits that were backported to clang-16. Check out how it looks, and propose changes like usual. --- FYI the `ninja docs-clang-html` produces the html docs, including the `ReleaseNotes`. And the produced artifact will be at `build/tools/clang/docs/html/ReleaseNotes.html`. Differential Revision: https://reviews.llvm.org/D155445 -
Craig Topper authored
A couple of these tests show a need for computeKnownBits support for Zicond.
-
Kai Luo authored
According to the ELFv2 ABI > This relocation type is used to specify a function call where the TOC pointer is not initialized. It is similar to R_PPC64_REL24 in that it specifies a symbol to be resolved. If the symbol resolves to a function that requires a TOC pointer (as determined by st_other bits) then a link editor must arrange for the call to be via the global entry point of the called function. Any stub code must not rely on a valid TOC base address in r2. This patch fixes handling of `R_PPC64_REL24_NOTOC` by using the same stub code sequence as lld. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D155672
-
Yingwei Zheng authored
This patch adds some test cases from https://github.com/llvm/llvm-project/issues/63896. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D155853
-
Jim Lin authored
Also remove the warning line for that these prefixes are unused. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D156048
-
eopXD authored
This patch supports register allocation for floating-point types when `zfinx` and `zdinx` is specified in the architecture for the GHC calling convention. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155910
-
wanglei authored
This patch defines the `LVZ` and `LBT` extension instructions, which provide enough definitions for llvm-mc and llvm-objdump to correctly handle these instructions. It also defines the `SCR` (Scratchpad Register) register class, which are used by the `LBT` extension instructions. Reviewed By: SixWeining, xen0n Differential Revision: https://reviews.llvm.org/D155917
-
Jacques Pienaar authored
This enables querying properties passed as attributes during construction time. In particular needed for type inference where the Operation has not been created at this point. This allows Python construction of operations whose type inference depends on properties. Differential Revision: https://reviews.llvm.org/D156070
-
esmeyi authored
Summary: The source language ID and CPU version ID are required by debuggers on AIX. AIX's system assembler determines the source language ID based on the source file's name suffix, and the behavior in this patch is consistent with it. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D155684
-
Jacques Pienaar authored
This reduces code generated for type inference and instead reuses facilities CAPI side that performed same role. Differential Revision: https://reviews.llvm.org/D156041t
-
Pravin Jagtap authored
When input to intrinsic is uniform value, reduced value is same as input whereas if input value is divergent we need to iterate over all active lanes of WaveFront to perform the reduction. The control flow for a `loop` has been set up, which iterates over `only` active lanes to perform reduction. Introduced WAVE_REDUCE_UMIN_PSEUDO_U32 and WAVE_REDUCE_UMAX_PSEUDO_U32 Pseudos which are lowered Post-ISel (in `EmitInstrWithCustomInserter `). Reviewed By: arsenm, #amdgpu Differential Revision: https://reviews.llvm.org/D154858
-
Jim Lin authored
The definition order is operand/SDNode, instruction class template, instruction, pseudo instruciton, codegen patterns, ....
-
Jie Fu authored
/Users/jiefu/llvm-project/llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp:53:13: error: unused variable 'v2s8' [-Werror,-Wunused-variable] const LLT v2s8 = LLT::fixed_vector(2, 8); ^ 1 error generated. -
Shilei Tian authored
This reverts commits for kernel environments as they causes issues in AMD BB.
-
Zhongyunde authored
Refer to commit ccffc270, the remaining types <2 x s8> and <4 x s8> should also be promoted to <2 x s32> and <4 x s16>. Fixes https://github.com/llvm/llvm-project/issues/58274 Reviewed By: aemerson, tschuett, paquette, dmgreen Differential Revision: https://reviews.llvm.org/D153394
-
Farid Zakaria authored
I noticed during the build that GCC would emit a ton of nonnull warnings. Example: ``` /usr/local/google/home/fmzakari/code/github.com/llvm/llvm-project/clang/include/clang/AST/ExternalASTSource.h:378:54: warning: ‘this’ pointer is null [-Wnonnull] 378 | Ptr = reinterpret_cast<uint64_t>((Source->*Get)(Ptr >> 1)); | ~~~~~~~~~~~~~~^~~~~~~~~~ ``` Reviewed By: MaskRay, rsmith Differential Revision: https://reviews.llvm.org/D155857
-
Wu, Yingcong authored
`PRE_READ` is called with a pointer and the size of the object the pointer points to. But there is one line of code not calling `PRE_READ` correctly(likely missing a dereference). This patch fixes the problem. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D154676
-
Jun Sha (Joshua) authored
The implementation in https://reviews.llvm.org/D151313 is done for the circumstance without Zfbfmin. This patch adds codegen support for the 6 instructions provided in Zfbfmin extension. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D153234
-
Freddy Ye authored
Frontend didn't and this feature.
-
khei4 authored
Reapply: [MemCpyOpt] implement single BB stack-move optimization which unify the static unescaped allocas"" This reverts commit c9d419c1. Differential Revision: https://reviews.llvm.org/D153453
-
Shilei Tian authored
-
Shilei Tian authored
-
Shilei Tian authored
-
Shilei Tian authored
This patch introduces per kernel environment. Previously, flags such as execution mode are set through global variables with name like `__kernel_name_exec_mode`. They are accessible on the host by reading the corresponding global variable, but not from the device. Besides, some assumptions, such as no nested parallelism, are not per kernel basis, preventing us applying per kernel optimization in the device runtime. This is a combination and refinement of patch series D116908, D116909, and D116910. Depend on D155886. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D142569
-
Fangrui Song authored
Close #64053
-
Fangrui Song authored
-
Shilei Tian authored
Current global address caculation doesn't work for AMDGPU in some cases (https://reviews.llvm.org/D142569#4506212). The root cause is the `sh_addr` is not substracted when caculating the address. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D155886
-
Andrzej Warzynski authored
-
Shivam Gupta authored
[clang-tidy] performance-* checks: Also allow allow member expressions to be used in a const manner. Until now when determining all the const uses of a VarDecl we only considered how the variable itself was used. This change extends checking for const usages of the type's members as well. This increases the number of true positives for various performance checks that share the same const usage analysis. Path by Felix Berger Reviewed By: njames93, PiotrZSL Differential Revision: https://reviews.llvm.org/D97567
-
David Green authored
This patch does two things. First it removes the tryHighFPExt DAG2DAG method used to select fcvtl2 instructions, using tablegen patterns through SelectExtractHigh instead. This essentially undoes D71515, in a way that should hopefully avoid any regressions. The second is that a GI equivalent of SelectExtractHigh is added in selectExtractHigh, from G_UNMERGE_VALUES. The end result is that GlobalISel (and some constrained fpext) can now make use of the fcvtl2 instructions, saving an extra dup/ext. Differential Revision: https://reviews.llvm.org/D155871
-