- Apr 18, 2023
-
-
Alex Bradbury authored
My fault for missing this in initial review - f98ca363 didn't properly update the comment to reflect the change.
-
Mats Petersson authored
Add flags for loop-versioning pass enable/disable Reviewed By: awarzynski, tblah Differential Revision: https://reviews.llvm.org/D141307
-
Serguei Katkov authored
Due to limitation that we consider only one alone predecessor we cannot generate the code like ucomiss jp ja jne
-
Matthias Springer authored
-
Alex Bradbury authored
-
David Spickett authored
I do not know of anyone currently using this and could not find any uses over in llvm-zorg. Differential Revision: https://reviews.llvm.org/D148522
-
Craig Topper authored
Make the const version return a const TreePatterNode* and add a non-const version to return a non-const TreePatternNode*.
-
Jun Sha (Joshua) authored
According to latest risc-v spec, the canonical order in which extension names must appear in the name string specified in Table 29.1 is different from before. In the latest table, non-standard extensions must be listed after all standard extensions. To keep consistent, we now change the parsing order in parseArchString(). Reviewed By: asb Differential Revision: https://reviews.llvm.org/D148315
-
David Spickett authored
7978abd5 fixed a build issue on MSVC with some code I previously added, by adding some ifdefs. Now I realise that I should have been using llvm::byteswap in the first place, which does exactly that.
-
Stephan Herhut authored
Loading the offset of an unranked memref descriptor is creating an invalid load. Differential Revision: https://reviews.llvm.org/D148540
-
Kadir Cetinkaya authored
Fixes https://github.com/llvm/llvm-project/issues/62185 Differential Revision: https://reviews.llvm.org/D148552
-
Matthias Springer authored
This revision adds an additional `reifyValueBounds` helper that reifies the IR with Arith ops instead of Affine ops. This is needed to support value bounds for integer types different from `index` in a subsequent revision. Differential Revision: https://reviews.llvm.org/D146524
-
Kriti Gupta authored
Differential Revision: https://reviews.llvm.org/D148041
-
OCHyams authored
Debug intrinsics sometimes end up with empty metadata location operands. The debug intrinsic interfaces return nullptr when retrieving location operand in this case. Skip empty-metadata dbg.declares to avoid dereferencing the nullptr. This doesn't affect the final debug info in any way. Reviewed By: jryans Differential Revision: https://reviews.llvm.org/D148204
-
OCHyams authored
Debug intrinsics sometimes end up with empty metadata location operands. The debug intrinsic interfaces return nullptr when retrieving location operand in this case. When assignment tracking is not enabled a dbg.declare with a nullptr location operand is skipped. Do the same when assignment tracking is enabled (a nullptr address component of a dbg.assign is already handled correctly. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D148203
-
Matthias Springer authored
There are now two entry points. One for shaped values and one for index-typed values. This addresses a comment in D146524. Differential Revision: https://reviews.llvm.org/D147987
-
Craig Topper authored
-
Wang, Xin10 authored
In line 68, func getBlockFreqRelativeToEntryBlock assume getEntryFreq() is non-zero, but the function could return 0, add assert to confirm it. Reviewed By: HaohaiWen Differential Revision: https://reviews.llvm.org/D148606
-
Martin Braenne authored
To ensure that we have a pointee for the `PointerValue`, we also create storage locations for `FunctionDecl`s referenced in the function under analysis. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D148006
-
Noah Goldstein authored
May be related to PR62175 This reverts commit a3fd060d.
-
Noah Goldstein authored
Revert "[ValueTracking] Apply the isKnownNonZero techniques in `ashr`/`lshl` to `shl` and vice-versa" May be related to PR62175 This reverts commit 57590d1d.
-
Max Kazantsev authored
-
Martin Braenne authored
Reviewed By: xazax.hun, gribozavr2 Differential Revision: https://reviews.llvm.org/D147698
-
Noah Goldstein authored
If Y is non-zero we can simplify the ge/le -> gt/lt `(X ^ Y_NonZero) u>= X` --> `(X ^ Y_NonZero) u> X` - https://alive2.llvm.org/ce/z/k482NQ `(X ^ Y_NonZero) u<= X` --> `(X ^ Y_NonZero) u< X` - https://alive2.llvm.org/ce/z/TuUDGy `(X ^ Y_NonZero) s>= X` --> `(X ^ Y_NonZero) s> X` - https://alive2.llvm.org/ce/z/vXQypR `(X ^ Y_NonZero) s<= X` --> `(X ^ Y_NonZero) s< X ` - https://alive2.llvm.org/ce/z/fbUq-z Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D144608 -
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D144607
-
Noah Goldstein authored
For all shifts we can apply the same two optimizations. 1) `ShiftOp(KnownVal.One, Max(KnownCnt)) != 0` -> result is non-zero 2) If already known `Val != 0` and we only shift out zeros (based on `Max(KnownCnt)`) -> result is non-zero The former exists for `shl` and the latter (for constant `Cnt`) exists for `ashr`/`lshr`. This patch improves the latter to use `Max(KnownCnt)` instead of relying on a constant shift `Cnt` and applies both techniques for all shift ops. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D148404 -
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D148403
-
Craig Topper authored
-
Vitaly Buka authored
This is more RAM and CPU efficient than allocating entire page per context, and this approach is used by other sanitizers already. With the patch "create_thread_loop2.cpp.tmp 5000" is 30% faster.
-
Manna, Soumi authored
Reported by Coverity: Copy without assign This class has a user-defined copy constructor but no user-defined assignment operator. If the copy constructor is necessary to manage owned resources then a corresponding assignment operator is usually required. If an object of this type is assigned memory leaks and/or use-after-free errors may occur. Note that a compiler-generated assignment operator will perform only a bit-wise copy for any fields that do not have their own assignment operators defined. Class has user-written copy constructor but no user-written assignment operator copy_without_assign: Class <unnamed>::DeclUseTracker has a user-written copy constructor <unnamed>::DeclUseTracker::DeclUseTracker(<unnamed>::DeclUseTracker const &) =delete but no corresponding user-written assignment operator. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D148189
-
Wang, Xin10 authored
The condition Opcode <= std::numeric_limits<int>::max() will always be true here. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D148306
-
Dave Lee authored
If this test fails, the error message isn't helpful: ``` self.assertEqual(len(threads), 1, AssertionError: 0 != 1 : Stopped at breakpoint in exec'ed process ``` This change adds asserts to verify that: 1. The process is stopped 2. For each thread, that the stop reason is None, or Breakpoint The latter will indicate if execution has stopped for some other reason, and if so what that reason is. Differential Revision: https://reviews.llvm.org/D148588
-
Michał Górny authored
Mark the two dfsan tests that are known to be broken on glibc-2.37 as XFAIL, to make the test suite start passing on Gentoo again. Bug: https://github.com/llvm/llvm-project/issues/60678 Differential Revision: https://reviews.llvm.org/D148496
-
Manna, Soumi authored
Reported by Coverity: AUTO_CAUSES_COPY Unnecessary object copies can affect performance. 1. [NFC] Fix auto keyword use without an & causes the copy of an object of type SimpleRegistryEntry in clang::getAttributePluginInstances() 2. [NFC] Fix auto keyword use without an & causes the copy of an object of type tuple in CheckStmtInlineAttr<clang::NoInlineAttr, 2>(clang::Sema &, clang::Stmt const *, clang::Stmt const *, clang::AttributeCommonInfo const &) 3. [NFC] Fix auto keyword use without an & causes the copy of an object of type QualType in <unnamed>::SystemZTargetCodeGenInfo::isVectorTypeBased(clang::Type const *, bool) 4. [NFC] Fix auto keyword use without an & causes the copy of an object of type Policy in <unnamed>::RISCVIntrinsicManagerImpl::InitIntrinsicList() 5. [NFC] Fix auto keyword use without an & causes the copy of an object of type pair in checkUndefinedButUsed(clang::Sema &) Reviewed By: tahonermann Differential Revision: <https://reviews.llvm.org/D147543>
-
Slava Zakharin authored
I noticed _Complex was missing for the long double case. I might be missing something, but it looks like the compiler does not call the C wrappers directly. Do we need to keep the complex-reduction.[ch] at all? Differential Revision: https://reviews.llvm.org/D148479
-
Johannes Doerfert authored
We failed to cache queries without an exclusion set that resulted in non-reachable results. That is obviously bad as changes to liveness can influence the result. Fixes: https://github.com/llvm/llvm-project/issues/61883
-
max authored
Differential Revision: https://reviews.llvm.org/D148058
-
Alexander Yermolovich authored
When input is DWP with DWARF5 bolt wasn't handling correctly CUs that didn't have TU references. Which resulted in a crash. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D148589
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D148595
-
Vitaly Buka authored
Not needed. This reverts commit e864e6f2.
-