- Jun 13, 2022
-
-
Kazu Hirata authored
Identified with modernize-use-default-member-init.
-
Kazu Hirata authored
Identified with modernize-use-default-member-init.
-
Kazu Hirata authored
Identified with modernize-use-default-member-init.
-
Petr Hosek authored
This is the idiomatic way to handle include directories in CMake. Differential Revision: https://reviews.llvm.org/D122614
-
Jez Ng authored
Just matter of enabling the config option. (Also changed the platform of the input test file to macOS, since that's the default that we specify in the `%lld` substitution. The conflict was causing errors when linking with LTO.) Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D127600
-
Jez Ng authored
This reverts commit d941d597. Differential Revision: https://reviews.llvm.org/D122258
-
Hubert Tong authored
https://reviews.llvm.org/D127583 removed the only use of this variable and broke builds with warnings-as-errors.
-
Nikolas Klauser authored
D125496 changed the string layout on windows. Change `__is_long_` and `__size_` back to using `unsigned char` to fix the issue. Reviewed By: Mordante, #libc Spies: jloser, libcxx-commits, ayzhao Differential Revision: https://reviews.llvm.org/D127566
-
Nuno Lopes authored
-
Simon Pilgrim authored
This patch allows SimplifyDemandedBits to call SimplifyMultipleUseDemandedBits in cases where the source operand has other uses, enabling us to peek through the shifted value if we don't demand all the bits/elts. This helps with several of the regressions from D125836
-
Nuno Lopes authored
This change is cosmetic, as these are dummy values that are not observable, but it gets us closer to removing undef. NFC
-
Craig Topper authored
These methods don't access any state from RISCVInstrInfo. Make them free functions in the RISCV namespace. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D127583
-
Kazu Hirata authored
We can erase an item in DenseMap without checking its membership first.
-
Kazu Hirata authored
-
Florian Hahn authored
-
- Jun 12, 2022
-
-
Florian Hahn authored
The test should use the GEP for the store, so it is not dead.
-
Mehdi Amini authored
This reverts commit 2d2da259. This breaks MLIR integration test (JIT crashing), reverting in the meantime.
-
Simon Pilgrim authored
If the LHS/RHS selection operands can be cheaply concatenated back together then replace 2 x 128-bit selection nodes with 1 x 256-bit node Addresses the regression introduced in the bug fix from rGd5af6a38 REAPPLIED with for bug identified in rGea8fb3b6
-
Simon Pilgrim authored
Reduced from test case reported by @srj for the concatenation of VSELECT/BLENDV nodes
-
Nuno Lopes authored
-
Ulrich Weigand authored
When convertEndianOfCharForBEmachine is called with elementBitWidth smaller than CHAR_BIT, the default case is invoked, but this does nothing at all and leaves the output array unchanged. Fix DenseIntOrFPElementsAttr::convertEndianOfArrayRefForBEmachine by not calling convertEndianOfCharForBEmachine in this case, and instead simply copying the input to the output (for sub-byte types, endian conversion is in fact a no-op). Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D125676
-
Jez Ng authored
Previously, omitting unnecessary DWARF unwinds was only done in two cases: * For Darwin + aarch64, if no DWARF unwind info is needed for all the functions in a TU, then the `__eh_frame` section would be omitted entirely. If any one function needed DWARF unwind, then MC would emit DWARF unwind entries for all the functions in the TU. * For watchOS, MC would omit DWARF unwind on a per-function basis, as long as compact unwind was available for that function. This diff makes it so that we omit DWARF unwind on a per-function basis for Darwin + aarch64 as well. In addition, we introduce the flag `--emit-dwarf-unwind=` which can toggle between `always`, `no-compact-unwind` (only emit DWARF when CU cannot be emitted for a given function), and the target platform `default`. `no-compact-unwind` is particularly useful for newer x86_64 platforms: we don't want to omit DWARF unwind for x86_64 in general due to possible backwards compat issues, but we should make it possible for people to opt into this behavior if they are only targeting newer platforms. **Motivation:** I'm working on adding support for `__eh_frame` to LLD, but I'm concerned that we would suffer a perf hit. Processing compact unwind is already expensive, and that's a simpler format than EH frames. Given that MC currently produces one EH frame entry for every compact unwind entry, I don't think processing them will be cheap. I tried to do something clever on LLD's end to drop the unnecessary EH frames at parse time, but this made the code significantly more complex. So I'm looking at fixing this at the MC level instead. **Addendum:** It turns out that there was a latent bug in the X86 backend when `OmitDwarfIfHaveCompactUnwind` is naively enabled, which is not too surprising given that this combination has not been heretofore used. For functions that have unwind info that cannot be encoded with CU, MC would end up dropping both the compact unwind entry (OK; existing behavior) as well as the DWARF entries (not OK). This diff fixes things so that we emit the DWARF entry, as well as a CU entry with encoding `UNWIND_X86_MODE_DWARF` -- this basically tells the unwinder to look for the DWARF entry. I'm not 100% sure the `UNWIND_X86_MODE_DWARF` CU entry is necessary, this was the simplest fix. ld64 seems to be able to handle both the absence and presence of this CU entry. Ultimately ld64 (and LLD) will synthesize `UNWIND_X86_MODE_DWARF` if it is absent, so there is no impact to the final binary size. Reviewed By: davide, lhames Differential Revision: https://reviews.llvm.org/D122258
-
Yuki Okushi authored
This patch replaces a link with a GitHub one. Fixes llvm#55748 Differential Revision: https://reviews.llvm.org/D126599
-
Simon Pilgrim authored
-
David Green authored
Since D61806, DAGCombiner has folded subvector_extract(bitcast(..)) to bitcast(subvector_extract(..)), which would place a bitcast between a subvector_extract and the operation that could be converted to a high neon instruction (like smull2). This adds better matching for the subvector_extract, through the tablegen extract_high PatFrags to optionally skip the bitcast under little ending, still matchings an extract of the high half of the input vector. I didn't update the extract_high of a duplicate patterns, as the ComplexPattern need names operands. I did add a extract_high_dup_v8i16 PatFrag to abstract away the common code, which can be extended in a future patch. Differential Revision: https://reviews.llvm.org/D126782
-
Phoebe Wang authored
GCC and Clang/LLVM will support `_Float16` on X86 in C/C++, following the latest X86 psABI. (https://gitlab.com/x86-psABIs) _Float16 arithmetic will be performed using native half-precision. If native arithmetic instructions are not available, it will be performed at a higher precision (currently always float) and then truncated down to _Float16 immediately after each single arithmetic operation. Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D107082
-
Alex Brachet authored
This reverts commit 6466c9ab.
-
Weining Lu authored
-
-
Amaury Séchet authored
-
Amaury Séchet authored
-
Kazushi (Jam) Marukawa authored
-
Keith Smiley authored
This flag suppresses warnings produced by the linker. In ld64 this has an interesting interaction with -fatal_warnings, it silences the warnings but the link still fails. Instead of doing that here we still print the warning and eagerly fail the link in case both are passed, this seems more reasonable so users can understand why the link fails. Differential Revision: https://reviews.llvm.org/D127564
-
Joe Loser authored
There is only compile-time tests in `dtor.pass.cpp`, so it could be made a `dtor.compile.pass.cpp`. Instead, add a runtime test for testing the trivial destructor behavior for `tuple`. Differential Revision: https://reviews.llvm.org/D109298
-
Nico Weber authored
-
Florian Hahn authored
The use of the argument has been remove a while ago. Remove the dead argument.
-
Florian Hahn authored
-
Alex Brachet authored
This environment variable can be set to control module caching. It disables caching by setting the variable empty. As such, it needs to be handled differently from other environment variables here which are assumed to not be empty.
-
Simon Pilgrim authored
[DAG] visitVECTOR_SHUFFLE - fold splat(insert_vector_elt()) and splat(scalar_to_vector()) to build_vector splats Addresses a number of regressions identified in D127115
-