- Jan 02, 2023
-
-
Nikita Popov authored
The way these APIs are used, there isn't really a benefit to deduplicating the ops as part of the API. The only place that benefits from this is PoisonChecking, and for that particular use the assertion emission was potentially non-deterministic. We should populate a vector for deterministic order and then deduplicate via a separate set.
-
Oleksandr "Alex" Zinenko authored
-
Daan De Meyer authored
getRawNumberOfSymbols() assumes that a symbol table exists, which isn't always guaranteed, while getNumberOfSymbols() handles and tolerates objects without a symbol table. When there is a symbol table, both methods return the same value. Also add a test to ensure we don't regress in this regard. The test generates a basic COFF object with symbols and overrides the symbol table pointer with zeros to craft the input required to verify llvm-objcopy works as expected in this scenario.
-
Adrian Kuegel authored
-
Nikita Popov authored
We were already treating branch on poison as UB, but branch on undef is also UB. Move the checks into the correct function. From LangRef for br: > If ‘cond’ is poison or undef, this instruction has undefined behavior. From LangRef for switch: > If ‘value’ is poison or undef, this instruction has undefined behavior. There is a minor regression in dont-distribute-phi.ll, apparently we handle that pattern in logical but not bitwise form.
-
Nikita Popov authored
I think this doesn't make any difference right now, but once we take into account that branch on undef is UB in programUndefinedIfUndefOrPoison() the new position of the branch would imply that the condition can't be poison, which would defeat the purpose of the freeze insertion here. We need to perform the check before the branch is moved.
-
Tamas Berghammer authored
Previously we were matching constructor calls for std::string and llvm::StringRef and this change extends this set with including std::string_view as well. Reviewed By: njames93, carlosgalvezp Differential Revision: https://reviews.llvm.org/D140018
-
Tobias Gysi authored
The revision introduces the LLVMImportDialectInterface to make the import of LLVM IR intrinsics extensible. It uses a dialect interface that enables external projects to provide their own conversion functions for custom intrinsics. These conversion functions can rely on the ModuleImport class to perform support tasks such as mapping LLVM values to MLIR values or for converting types between the two worlds. The implementation largely mirrors the export implementation. One major difference is the dispatch to the appropriate dialect interface, since LLVM IR intrinsics have no direct association to an MLIR dialect. The dialect interfaces thus have to publish the supported intrinsics to ensure incoming conversion calls are dispatched to the right dialect interface. The revision implements the extensible intrinsic import discussed as part of the "extensible llvm ir import" rfc: https://discourse.llvm.org/t/rfc-extensible-llvm-ir-import/67256/6 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D140374
-
Nikita Popov authored
This has been enabled by default without issue for a while now, remove the flag.
-
Qfrost authored
Differential Revision: https://reviews.llvm.org/D139184
-
Adrian Kuegel authored
-
luxufan authored
-
Owen Pan authored
See https://reviews.llvm.org/D140543#4021209.
-
Owen Pan authored
-
Jeff Bailey authored
Differential Revision: https://reviews.llvm.org/D140825
-
Roman Lebedev authored
[DAGCombiner][X86] Fold a CONCAT_VECTORS of SHUFFLE_VECTOR and it's operand into wider SHUFFLE_VECTOR This was showing as a source of *many* regressions with more aggressive ZERO_EXTEND_VECTOR_INREG recognition.
-
Roman Lebedev authored
-
Florian Hahn authored
Adjust mergeReplicateRegions to be in line with mergeBlocksIntoPredecessors added in 36d70a6a by collecting only the valid candidates first. Also rename to mergeReplicateRegionsIntoSuccessors and add missing doc-comment. This addresses post-commit suggestions by @Ayal.
-
- Jan 01, 2023
-
-
Tom Praschan authored
Relevant issue: https://github.com/clangd/clangd/issues/177 Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D137894
-
Kevin Sala authored
This patch fixes an undefined reference to llvm::Triple::Triple(llvm::Twine const&). Differential Revision: https://reviews.llvm.org/D140810
-
Ben Shi authored
The relocation 'R_AVR_LDS_STS_16' is introduced for the compact 16-bit LDS/STS instructions on AVRTiny devices. Reviewed By: MaskRay, aykevl Differential Revision: https://reviews.llvm.org/D139807
-
Fangrui Song authored
ENABLE_X86_RELAX_RELOCATIONS has defaulted to on in 2020. This workaround is not exercised for a long time.
-
Fangrui Song authored
MC default was flipped in 2016. CMake ENABLE_X86_RELAX_RELOCATIONS defaults to on in 2020 (c41a18cf). It makes sense for the CodeGenOptions::RelaxELFRelocations to match, so that most -cc1/-cc1as command lines won't have this option. This also fixes a minor issue: -fno-plt -S will now use GOT for __tls_get_addr calls, matching -fno-plt -c.
-
Fangrui Song authored
For x86-32, {clang,gcc} -fno-plt uses `call *___tls_get_addr@GOT(%reg)` instead of `call ___tls_get_addr@PLT`. GD to IE/LE relaxations need to shift the offset by one while LD to LE relaxation needs to use a different code sequence. While here, fix some comments. Fix https://github.com/llvm/llvm-project/issues/59769 Differential Revision: https://reviews.llvm.org/D140813 -
LLVM GN Syncbot authored
-
Owen Pan authored
Previously committed in 46c94e50 which was reverted in f0756e08 due to a memory bug. Closes #58949. Differential Revision: https://reviews.llvm.org/D140543
-
Markus Böck authored
-
- Dec 31, 2022
-
-
Florian Hahn authored
This reduces the size of VPlan.h and avoids future growth of the file when the graph traits are extended in future patches. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D140500
-
Uday Bondhugula authored
Fix affine LICM pass for unknown region-holding ops. The logic was completely ignoring regions of unknown ops leading to generation of invalid IR on hoisting. Handle affine.parallel op among those with regions that are supported. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D140738
-
Uday Bondhugula authored
The code here appears to be out of line with proper style and guidelines. Fix this.
-
Mark de Wever authored
Concepts should be supported by all supported compilers. This is probably a left over from an older version of the expected patch. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D140632
-
Jie Fu authored
This patch fixes two incorrect descriptions in TestingGuide.rst. 1. test/lit.site.cfg --> test/lit.site.cfg.py After https://reviews.llvm.org/D37838 , the `test/lit.site.cfg` had been added a .py extension. So it should be `test/lit.site.cfg.py`. 2. $(LLVM_OBJ_ROOT)/$(BuildMode)/bin --> $(LLVM_OBJ_ROOT)/bin The current build system doesn't create a $(BuildMode) directory any more. So it should be removed. Reviewed By: mehdi_amini, MaskRay Differential Revision: https://reviews.llvm.org/D140780
-
Fangrui Song authored
-
Qfrost authored
Differential Revision:https://reviews.llvm.org/D140555
-
Fangrui Song authored
r249754 (2015) added this macro (not set anywhere) for an escape hatch. This old layout has been non-working for many years (Linux arch/x86/include/asm/elf.h ELF_ET_DYN_BASE is outside the APP range): FATAL: Code 0x558547327980 is out of application range. Non-PIE build? FATAL: MemorySanitizer can not mmap the shadow memory. FATAL: Make sure to compile with -fPIE and to link with -pie. FATAL: Disabling ASLR is known to cause this error. FATAL: If running under GDB, try 'set disable-randomization off'. Non-pie doesn't work either. -
Yeting Kuo authored
The patch tries to make more vslidup nodes use tail agnostic. The idea comes from D125546 authored by Zack Chen. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140669
-
Fangrui Song authored
-
Roman Lebedev authored
As per the post-commit feedback - that was not the correct precondition to avoid it here. I think we should generally start changing mentality about `freeze`, the fact that we have been conditioned to be afraid of it (or of anything in LLVM in general) is the key problem here.
-
Roman Lebedev authored
As mentioned in post-commit feedback.
-
Roman Lebedev authored
Single-element vectors are legalized by splitting, so the the memory operations would also get scalarized. While we do have some support to reconstruct scalarized loads, we clearly don't catch everything. The comment for the affected AArch64 store suggests that having two stores was the desired outcome in the first place. This was showing as a source of *many* regressions with more aggressive ZERO_EXTEND_VECTOR_INREG recognition.
-