- May 30, 2023
-
-
Ivan Kosarev authored
Eliminates the need for the custom code in parseCustomOperand(). Part of <https://github.com/llvm/llvm-project/issues/62629>. Reviewed By: dp Differential Revision: https://reviews.llvm.org/D150980
-
- May 29, 2023
-
-
Justin Lebar authored
Previously, getConstantOffset could return an APInt with a different bitwidth than the input pointers. For example, we might be loading an opaque 64-bit pointer, but stripAndAccumulateInBoundsConstantOffsets might give a 32-bit offset. This was OK in most cases because in gatherChains, we casted the APInt back to the original ASPtrBits. But it was not OK when considering selects. We'd call getConstantOffset twice and compare the resulting APInt's, which might not have the same bit width. This fixes that. Now getConstantOffset always returns offsets with the correct width, so we don't need the hack of casting it in gatherChains, and it works correctly when we're handling selects. Differential Revision: https://reviews.llvm.org/D151640
-
Uday Bondhugula authored
Add output argument to affineParallelize utility. NFC. Differential Revision: https://reviews.llvm.org/D151636
-
Simon Pilgrim authored
[X86] X86FixupVectorConstantsPass - attempt to replace full width fp vector constant loads with broadcasts on AVX+ targets lowerBuildVectorAsBroadcast will not broadcast splat constants in all cases, resulting in a lot of situations where a full width vector load that has failed to fold but is loading splat constant values could use a broadcast load instruction just as cheaply, and save constant pool space. NOTE: SSE3 targets can use MOVDDUP but not all SSE era CPUs can perform this as cheaply as a vector load, we will need to add scheduler model checks if we want to pursue this.
-
Muhammad Omair Javaid authored
-
Florian Hahn authored
Revert "[ValueTracking][InstCombine] Add a new API to allow to ignore poison generating flags or metadatas when implying poison" This reverts commit 754f3ae6. Unfortunately the change can cause regressions due to dropping flags from instructions (like nuw,nsw,inbounds), prevent further optimizations depending on those flags. A simple example is the IR below, where `inbounds` is dropped with the patch and the phase-ordering test added in 7c91d82a. define i1 @test(ptr %base, i64 noundef %len, ptr %p2) { bb: %gep = getelementptr inbounds i32, ptr %base, i64 %len %c.1 = icmp uge ptr %p2, %base %c.2 = icmp ult ptr %p2, %gep %select = select i1 %c.1, i1 %c.2, i1 false ret i1 %select } For more discussion, see D149404.
-
Muhammad Omair Javaid authored
Since 44bb442f LLDB TestVarPath.py crashes on AArch64 Windows. GetValueForVariablePath function seems to be triggering the crash. This patch disable parts of this test causing the crash. Bug reported upstream: https://github.com/llvm/llvm-project/issues/62983
-
Alex Bradbury authored
As discussed in D151436, it's safe to do this as a simple shift (as is done in LegalizeDAG.cpp) rather than needing a libcall. The added test cases for RISC-V previously just triggered an assertion. Codegen for bfloat_to_double will be slightly improved by D151434. Differential Revision: https://reviews.llvm.org/D151563
-
Muhammad Omair Javaid authored
This reverts commit fd0d8466. It seems to have broken various flang unit tests on AArch64 Windows platform. https://lab.llvm.org/buildbot/#/builders/65/builds/9856 https://lab.llvm.org/buildbot/#/builders/120/builds/4883 Differential Revision: https://reviews.llvm.org/D151571
-
Muhammad Omair Javaid authored
Following tests are now passing on LLDB AArch64 Windows buildbot: lldb-api :: commands/expression/deleting-implicit-copy-constructor/TestDeletingImplicitCopyConstructor.py lldb-api :: functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py lldb-api :: lang/cpp/constructors/TestCppConstructors.py lldb-api :: lang/cpp/namespace/TestNamespace.py lldb-api :: lang/cpp/this_class_type_mixing/TestThisClassTypeMixing.py https://lab.llvm.org/buildbot/#/builders/219/builds/3012 This patch removes XFAIL decorator from all of the above. Differential Revision: https://reviews.llvm.org/D151268
-
serge-sans-paille authored
Inline builtins have a very special behavior compared to other functions, it's better if we keep them restricted to a minimal set of functions. Add a linkage check which prevents considering ODR definitions as inline builtins. Fix #62958 Differential Revision: https://reviews.llvm.org/D148723
-
Luo, Yuanke authored
Differential Revision: https://reviews.llvm.org/D151635
-
khei4 authored
Differential Revision: https://reviews.llvm.org/D151626 Reviewed By: nikic
-
Kazu Hirata authored
-
Noah Goldstein authored
Seems natural to highlight 'nocapture' along with other attributes like 'nonnull', 'noundef', etc.. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D151639
-
Vitaly Buka authored
-
Vitaly Buka authored
Iterating many time can be very expensive.
-
Hristo Hristov authored
Implements parts of P1614R2 Implemented `operator<=>` for `multiset` and `set` Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D148416
-
Max Kazantsev authored
LICM could reassociate mixed variant/invariant comparison/arithmetic operations and hoist invariant parts out of loop if it can prove that they can be computed without overflow. Motivating example here: ``` INV1 - VAR1 < INV2 ``` can be turned into ``` VAR > INV1 - INV2 ``` if we can prove no-signed-overflow here. Then `INV1 - INV2` can be computed out of loop, so we save one arithmetic operation in-loop. Reviewed By: skatkov Differential Revision: https://reviews.llvm.org/D148001
-
Vitaly Buka authored
-
Haojian Wu authored
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Manna, Soumi authored
This patch uses cast instead of dyn_cast which will assert if the type doesn't match. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D151469
-
Wang, Xin10 authored
Use big obj copy in range for-loop will call copy constructor every time, which can be avoided by use ref instead. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D150024
-
Luo, Yuanke authored
-
Haohai Wen authored
This reverts part of commit 44363f2f. Fixup for NO symbol table test has been reserved. Reviewed By: wxiao3 Differential Revision: https://reviews.llvm.org/D151417
-
Wang, Xin10 authored
D150436 changed the order for INC*r, but unintentionally remove 'isConvertibleToThreeAddress = 1' for INC*r_alt. This patch also update wrong comment X86InstrArithmetic.td, and move class ITy to InstrInfo.td for it's a general class. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D151527
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svld1_hor_za8 // also for _za16, _za32, _za64 and _za128 - svld1_hor_vnum_za8 // also for _za16, _za32, _za64 and _za128 - svld1_ver_za8 // also for _za16, _za32, _za64 and _za128 - svld1_ver_vnum_za8 // also for _za16, _za32, _za64 and _za128 - svst1_hor_za8 // also for _za16, _za32, _za64 and _za128 - svst1_hor_vnum_za8 // also for _za16, _za32, _za64 and _za128 - svst1_ver_za8 // also for _za16, _za32, _za64 and _za128 - svst1_ver_vnum_za8 // also for _za16, _za32, _za64 and _za128 SveEmitter.cpp is extended to generate arm_sme.h (currently named arm_sme_draft_spec_subject_to_change.h) and other SME definitions from arm_sme.td, which is modeled after arm_sve.td. Common TableGen definitions are moved into arm_sve_sme_incl.td. Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen, kmclaughlin Differential Revision: https://reviews.llvm.org/D127910
-
Vitaly Buka authored
-
Uday Bondhugula authored
Address clang-tidy warning in JitRunner.cpp. Use range-based for.
-
Vinayaka Bandishti authored
Folding 0-result ops is tricky. An 0-trip-count `affine.for` that does not return any results is not erased at the end of its usual fold method. Attempting fold it to only results in an infinite loop of folds on the same op. Fix this by attempting for fold away only those `affine.for` ops that return a non-zero number of results. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D151546
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Hristo Hristov authored
`weak_equality` and `strong_equality` are removed from the standard: - https://wg21.link/P1959R0 - https://eel.is/c++draft/cmp.categories.pre Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D151627
-
Kazu Hirata authored
The corresponding function definition was removed by: commit cf8ff75b Author: Leonard Chan <leonardchan@google.com> Date: Tue Jul 14 14:56:38 2020 -0700
-
Kazu Hirata authored
The function was renamed to ReadTemplateKWAndArgsInfo, but the original declaration remained: commit 7945c981 Author: Abramo Bagnara <abramo.bagnara@gmail.com> Date: Fri Jan 27 09:46:47 2012 +0000
-
Kazu Hirata authored
The corresponding function definition was removed by: commit 6f96dadb Author: Joseph Huber <jhuber6@vols.utk.edu> Date: Mon Jan 23 07:13:33 2023 -0600
-