- Dec 18, 2022
-
-
Guillaume Chatelet authored
-
Roman Lebedev authored
This was a regression from 17e20242. Previously we'd gracefully handle missing measurements, but that handling got accidentally lost during the code move, and we'd assert. What we want to do, is to discard all measurements (from all repetitors in a given config) if any of them failed, but do append the snippet, and do emit the empty measurement.
-
Roman Lebedev authored
`getRunnableConfiguration()` may be executed in parallel, and then this the output would become even less useful.
-
Nico Weber authored
-
Nicolas Vasilache authored
-
Sanjay Patel authored
It's a bigger match than usual, but I have not found any sub-patterns that reduce: (X / DivC) + sext ((X & (SMin | (DivC - 1)) >u SMin) --> X >>s log2(DivC) https://alive2.llvm.org/ce/z/MJzlhl Fixes issue #55741
-
Sanjay Patel authored
-
Matt Arsenault authored
Due to poor support for non-0 null pointers, clang always emits addrspacecast from a null flat constant for private/local null. We can trivially handle this case for old hardware. Should fix issue 55679.
-
Matt Arsenault authored
Fixes inconsistent handling of constant-32bit case. Turns out we can lower all the casts just fine, it's just accessing the flat results that's a problem.
-
Nico Weber authored
-
Nico Weber authored
Test now passes, at least on macOS.
-
Kristina Bessonova authored
This patch makes ADRP target label address calculations the same as label address calculations (see AArch64InstPrinter::printAdrpLabel()). Otherwise the target label looks misleading as ADRP's immediate offset is, actually, not an offset to this PC, but an offset to the current PC's page address in pages. See for example, `llvm-objdump/ELF/AArch64/pcrel-address.yaml`. Before this patch the target label `<_start+0x80>` represents the address `0x200100 + 0x80` while `0x220000` is expected. Note that with this patch llvm-objdump output matches GNU objdump. Reviewed By: simon_tatham Differential Revision: https://reviews.llvm.org/D139407
-
Nico Weber authored
Enough to get the build fixed, but doesn't add the plugin yet, so the test fails for now.
-
Nico Weber authored
-
Sanjay Patel authored
This puts lower insert indexes before higher. This is independent of endian, so it requires an adjustment to a fold added with 4446f71c, but it makes that fold more robust. That's also where this patch was suggested - D139668. This matches what we already do in DAGCombiner, but there is one more constraint because there's an existing canonicalization for insert-of-scalar-constant. I'm not sure if that is still needed, so it may be adjusted/removed as a follow-up.
-
Sanjay Patel authored
issue #57741
-
Sanjay Patel authored
The auto-generation CHECK script warns of possible conflict on these files.
-
ibricchi authored
Reviewed By: akyrtzi Differential Revision: https://reviews.llvm.org/D140266
-
Iain Sandoe authored
For the Itanium ABI, we emit an initializer for each module. This is responsible for handling initialization of global vars. Relates to P1874R1. The initializer has a known mangling and is automatically called from any TU that imports a module. Since, at present, the importer has no way to determine that an imported module does not require an initializer, we generate the initializer for all cases (even when it is empty). Initializers must be run once, with the ordering guaranteed by the import graph and this is ensured in the current code by addition of a guard variable. In the case that a module has no requirement for global initializers, and also does not import any other modules, we can elide the guard variable. Differential Revision: https://reviews.llvm.org/D134589
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Sameer Sahasrabuddhe authored
Previously reverted in 8b446ea2 Reapplying because this commit is NOT DEPENDENT on the reverted commit fc21f2d7, which broke the ASAN buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information. The arguments to a PHI may represent a recurrence by eventually using the output of the PHI itself. This is now handled by checking for cycles in the control flow. If a PHI is not in a recurrence, it is now able to report multiple offsets instead of conservatively reporting unknown. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138991
-
Vy Nguyen authored
This reverts commit 09c5aab7. New changes: Temporarily skip checking the output bundle's cpu/cpu-subtype Suspected there's a bug in selecting targets which caused the produced bundle to be arm64 bundle (even though it was specifically linked with -arch x86_64). The current test that link succeeded should be sufficient, because it would have failed with "unable to find matching tagets" prior to this patch. Differential Revision: https://reviews.llvm.org/D139572
-
River Riddle authored
Avoids parsing other types of attributes when checking if there is a SymbolRefAttr.
-
Johannes Doerfert authored
Before we might have missed calling the destructor on an abstract attribute if it was created outside the seeding or update phase. All AAs are now in the AAMap and we can use it to delete them all.
-
Dinar Temirbulatov authored
This allows it to fold WHILEop with constant operand to PTRUE instruction in the case given range is fitted to predicate format. Also, this change fixes the unsigned overflow error introduced in D137547 for WHILELO lowering. Differential Revision: https://reviews.llvm.org/D139068
-
Peter Klausler authored
In an error recovery situation, the name resolution code for a SELECT TYPE statement must check the presence of an optional expression before calling GetType() upon it. Differential Revision: https://reviews.llvm.org/D140153
-
Roman Lebedev authored
`benchmarkMain()` is already bigger than it should be, let's extract the important chunk before making it even larger.
-
Roman Lebedev authored
[NFC][llvm-exegesis] `BenchmarkRunner`: split `runConfiguration()` into `getRunnableConfiguration()` + `runConfiguration()` We can run as many `getRunnableConfiguration()` in parallel as we want, but `runConfiguration()` must be run *completely* standalone from everything. This is a step towards enabling threading.
-
Roman Lebedev authored
We don't ever legitimately need to copy it, so let's make that explicit
-
Fangrui Song authored
Removing .c_str() has a semantics difference, but the use scenarios likely do not matter as we don't have NUL in the strings.
-
Roman Lebedev authored
I'm absolutely flabbergasted by this. I was absolutely sure this worked. But apparently not. When outputting to the file, we'd write a single `InstructionBenchmark` to it, and then close the file. And for the next `InstructionBenchmark`, we'd reopen the file, truncating it in process, and thus the first `InstructionBenchmark` would be gone...
-
Gregory Alfonso authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139485
-
Khem Raj authored
Pass -D_FILE_OFFSET_BITS=64 to compiler flags on 32bit glibc based systems. This will make sure that 64bit versions of LFS functions are used e.g. seek will behave same as lseek64. Also revert [1] partially because this added a cmake test to detect lseek64 but then forgot to pass the needed macro to actual compile, this test was incomplete too since libc implementations like musl has 64bit off_t by default on 32bit systems and does not bundle[2] -D_LARGEFILE64_SOURCE under -D_GNU_SOURCE like glibc, which means the compile now fails on musl because the cmake check passes but we do not have _LARGEFILE64_SOURCE defined. Using the *64 function was transitional anyways so use -D_FILE_OFFSET_BITS=64 instead [1] https://github.com/llvm/llvm-project/commit/8db7e5e4eed4c4e697dc3164f2c9351d8c3e942b [2] https://git.musl-libc.org/cgit/musl/commit/?id=25e6fee27f4a293728dd15b659170e7b9c7db9bc Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139752
-
Peter Klausler authored
When some arguments that specify bit positions, shift counts, and field sizes are constant at compilation time, but other arguments are not constant, the compiler should still validate the constant ones. In the current sources, validation is only performed for intrinsic references that can be folded to constants. Differential Revision: https://reviews.llvm.org/D140152
-
Krzysztof Parzyszek authored
-
Markus Böck authored
Returning `std::nullopt` from the case of a `TypeSwitch` yields broken results, by either falling through to another case, or falling of the switch entirely and hitting an assertion. This is simply due to the use of `operator=` of what is now `std::optional`, which has an overload specifically for `std::nullopt`, causing the internal optional, used for the `TypeSwitch` result to be reset, instead of a value being constructed from the `std::nullopt`. The fix is to simply use the `emplace` method of `std::optional`, causing a value to always be constructed from the value returned by the case function. Differential Revision: https://reviews.llvm.org/D140265
-
Fangrui Song authored
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716/19 value() is a 15.0.0 API for std::optional migration. std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). Deprecate value() to prevent new in-tree uses which may accidentally cause build breakage for older Xcode when contributors perform std::optional migrating. Some downtream MLIR projects such as tensorflow/mlir-hlo, stablehlo use value(), so we do not remove it now.
-
Fangrui Song authored
prerequisite to deprecate the new API value() whose counterpart in std::optional has undesired exception checking semantics and is unavailable in older Xcode.
-
Fangrui Song authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Simon Pilgrim authored
These should consistently use the fused domain count, not the unfused domain Confirmed with Agner + uops.info
-