- Dec 19, 2022
-
-
Sergei Barannikov authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D140273
-
Fangrui Song authored
Similar to 1b9cd51d
-
Krzysztof Parzyszek authored
This reverts commit 8f0df9f3. The Optional*RefDegradesTo*EntryPtr types want to keep the same size as the underlying type, which std::optional doesn't guarantee. For use with llvm::Optional, they define their own storage class, and there is no way to do that in std::optional. On top of that, that commit broke builds with older GCCs, where std::optional was not trivially copyable (static_assert in the clang sources was failing).
-
Mark de Wever authored
Some clang diagnostics have changed causing build failures. Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D140272
-
Florian Hahn authored
This adds test coverage for a suggestion in D111643.
-
Matt Arsenault authored
This was trying to merge 2 32-bit pointers into a 64-bit pointer. The artifact combiner was assuming merges to pointers use scalar sources, and ended up inserting invalid bitcast from a pointer to a scalar. It should probably be a verifier error to have pointer merge sources with a pointer result. Fixes verifier errors with EXPENSIVE_CHECKS.
-
David Blaikie authored
This caused a -Wunused-variable warning in a without-assert+with-stats build (because the stats were included but their use was not). Stat use is meant to be gated by LLVM_ENABLE_STATS which can be set independently of assertions.
-
Roman Lebedev authored
We can't serialize if for latency measurements, and when measuring uops, it crashes so hard even `CrashRecoveryContext` doesn't stop it. Looks like *this* was the last crasher, now `--opcode-index=-1` succeeds for all three benchmark modes here. At least with Duplication repetitor.
-
Roman Lebedev authored
We already have opcode name -> opcode index map, use it. Reserve memory where appropriate.
-
Roman Lebedev authored
Otherwise the progress meter would assert.
-
- Dec 18, 2022
-
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D139939
-
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
-