- Jul 29, 2022
-
-
Kirill Okhotnikov authored
Differential Revision: https://reviews.llvm.org/D129275
-
Matt Devereau authored
IdxInsert == IdxDupLane is incorrect. IdxInsert is the starting element number, whereas IdxIndex is the index of a quadword
-
Sanjay Patel authored
-
Simon Pilgrim authored
If the LHS op has a single use then using the more general AND op is likely to allow commutation, load folding, generic folds etc. Updated version - original version rG057db200 didn't correctly account for multiple uses of the mask that might be folding "OR(AND(X,C),AND(Y,~C)) -> OR(AND(X,C),ANDNP(C,Y))" in canonicalizeBitSelect
-
Alex Bradbury authored
Previously, it was necessary to check the atomics lowering or expansion code to determine which argument was which. This patch additionally tweaks the documentation comment in TargetLowering to clarify the return value of the intrinsic and that the intrinsic isn't required to mask and shift the result (this is handled by the target-independent code in AtomicExpandPass).
-
Nikita Popov authored
Instead call the constant folding API, which can fail. For now, this should be NFC, as we still allow the creation of fneg constant expressions.
-
Amaury Séchet authored
It simplifies the logic and removes the need for manual bookkeeping. Differential Revision: https://reviews.llvm.org/D130445
-
Louis Dionne authored
We are shipping it in LLVM 15 via a cherry-pick.
-
Mirko Brkusanin authored
Differential Revision: https://reviews.llvm.org/D130764
-
Alexey Lapshin authored
This review is extracted from D96035. DWARF Debuginfo classes have two representations for DIEs: DWARFDebugInfoEntry (short) and DWARFDie(extended). Depending on the task, it might be more convenient to use DWARFDebugInfoEntry or/and DWARFDie. DWARFUnit class already has methods working with DWARFDie and DWARFDebugInfoEntry. This patch adds more methods working with DWARFDebugInfoEntry to have paired functionality. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D126059
-
Adrian Kuegel authored
This method returns the value as std::complex<APFloat> Differential Revision: https://reviews.llvm.org/D130770
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D130347
-
Simon Pilgrim authored
When constant folding "ANDNP(C,X) -> AND(~C,X)" we hit cases such as this where we interfered with the "OR(AND(X,C),AND(Y,~C)) -> OR(AND(X,C),ANDNP(C,Y))" fold in canonicalizeBitSelect
-
Simon Pilgrim authored
Many of these cases, an early-out on the much cheaper getOpcode() check will avoid us needing to call hasOneUse() entirely.
-
Matt Arsenault authored
Since 814a0abc, this would break if we had a function in the module that becomes dead in any codegen IR pass. The function wasn't deleted since it was initially used in dead code, but is detached from the call graph and doesn't appear in the PO traversal. Do a second walk over the module to populate the resources of any functions which weren't already processed.
-
Matt Arsenault authored
If the subregister uses were dead, this would leave the main range segment pointing to a deleted instruction. Not sure if this should try to avoid shrinking if we know we don't have dead components.
-
Erich Keane authored
In preperation of the deferred instantation progress, this patch propagates the multi-level template argument lists further through the API to reduce the size of that patch.
-
Florian Hahn authored
-
Alexander Timofeev authored
This reverts commit 76d9ae92. because it causes several VK CTS tests to fail
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D130756
-
Luís Marques authored
[compiler-rt][builtins][RISCV] Set COMPILER_RT_HAS_FLOAT16 for RISC-V compiler-rt tests, fixes test__extendhfsf2 Since D92241, compiler-rt/cmake/builtin-config-ix.cmake automatically tests the host compiler for support of _Float16 and conditionally defines COMPILER_RT_HAS_FLOAT16. That defines the macro while the compiler-rt builtins are being built. To also define it during the compiler-rt test runs requires whitelisting the architecture in compiler-rt/test/builtins/CMakeLists.txt, as done in this patch. That seems brittle. Ideally, we'd move to a solution where the target compiler was automatically tested as well, but I'm not sure how feasible that is with the current CMake setup. For now, this patch whitelists RISC-V, fixing errors in test__extendhfsf2. Alternate solutions that fix the root issue are welcome, though. Differential Revision: https://reviews.llvm.org/D129432
-
Luís Marques authored
Revert "[compiler-rt][builtins][RISCV] Set COMPILER_RT_HAS_FLOAT16 for RISC-V compiler-rt tests, fixes test__extendhfsf2" This reverts commit 55920d92.
-
Luís Marques authored
[compiler-rt][builtins][RISCV] Set COMPILER_RT_HAS_FLOAT16 for RISC-V compiler-rt tests, fixes test__extendhfsf2 Since D92241, compiler-rt/cmake/builtin-config-ix.cmake automatically tests the host compiler for support of _Float16 and conditionally defines COMPILER_RT_HAS_FLOAT16. That defines the macro while the compiler-rt builtins are being built. To also define it during the compiler-rt test runs requires whitelisting the architecture in compiler-rt/test/builtins/CMakeLists.txt, as done in this patch. That seems brittle. Ideally, we'd move to a solution where the target compiler was automatically tested as well, but I'm not sure how feasible that is with the current CMake setup. For now, this patch whitelists RISC-V, fixing errors in test__extendhfsf2. Alternate solutions that fix the root issue are welcome, though. Differential Revision: https://reviews.llvm.org/D129432
-
Kadir Cetinkaya authored
Lots of features built on top of ASTs require getting back to the path of the TU and they used lossy conversion from file ids using sourcemanager. This patch preserves the file path passed by the caller inside ParsedAST for later use. Differential Revision: https://reviews.llvm.org/D130690
-
Simon Pilgrim authored
VirtualFileSystem.h - don't use \param in general description - use \p instead to fix Wdocumentation warnings.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Many of these cases, an early-out on the much cheaper getOpcode() check will avoid us needing to call hasOneUse() entirely.
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Simon Pilgrim authored
Add a method for the various cases where we need to concatenate 2 KnownBits together (BUILD_PAIR and SHIFT_PARTS in particular) - uses the existing APInt::concat 'HiBits.concat(LoBits)' convention Differential Revision: https://reviews.llvm.org/D130557
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
Migrating all private STL code to the standard STL case but keeping it under the CPP namespace to avoid confusion. Starting with the type_traits header. Differential Revision: https://reviews.llvm.org/D130727
-
Jay Foad authored
-
wanglei authored
This patch is for frameindex calculations. Differential Revision: https://reviews.llvm.org/D130248
-
wanglei authored
Ensure non-terminators don't follow terminators. This patch fixes the `sdiv-udiv-srem-urem.ll` test failure with expensive check. Differential Revision: https://reviews.llvm.org/D130247
-
David Sherwood authored
A build vector of two extracted elements is equivalent to an extract subvector where the inner vector is any-extended to the extract_vector_elt VT, because extract_vector_elt has the effect of an any-extend. (build_vector (extract_elt_i16_to_i32 vec Idx+0) (extract_elt_i16_to_i32 vec Idx+1)) => (extract_subvector (anyext_i16_to_i32 vec) Idx) Depends on D130697 Differential Revision: https://reviews.llvm.org/D130698
-
Nuno Lopes authored
-
David Sherwood authored
Add tests which show code quality of uitofp and sitofp. Differential Revision: https://reviews.llvm.org/D130697
-
Fangrui Song authored
-
Florian Hahn authored
At the moment, proveNoSignedWrapViaInduction may be called for the same AddRec a large number of times via getSignExtendExpr. This can have a severe compile-time impact for very loop-heavy code. If proveNoSignedWrapViaInduction failed to prove NSW the first time, it is unlikely to succeed on subsequent tries and the cost doesn't seem to be justified. This is the signed version of 8daa3382 / D130648. This can drastically improve compile-time in some excessive cases and also has a slightly positive compile-time impact on CTMark: NewPM-O3: -0.06% NewPM-ReleaseThinLTO: -0.04% NewPM-ReleaseLTO-g: -0.04% https://llvm-compile-time-tracker.com/compare.php?from=8daa338297d533db4d1ae8d3770613eb25c29688&to=aed126a196e7a5a9803543d9b4d6bdb233d0009c&stat=instructions Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D130694
-