- Jul 23, 2023
-
-
Antonio Frighetto authored
Do not assume scalar types when folding binops of `select` operations and `zext`/`sext` of their condition. Reported-by: Benjins, dyung Proofs: https://alive2.llvm.org/ce/z/GmDLns
-
Simon Pilgrim authored
Consistently use SDLoc DL
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Followup to af32e51a - where the undef funnel shift amounts (during widening from v2i32 -> v4i32) were being constant folded to 0 when the shift amounts are created during expansion, losing the splat'd shift amounts.
-
Simon Pilgrim authored
-
Corentin Jabot authored
-
Amirreza Ashouri authored
https://godbolt.org/z/cMKE3o1aG According to the issue https://github.com/llvm/llvm-project/issues/63960 , compiler falsely complains that no viable `operator<=>` was found while we are actually looking for a `operator==`. This bug has been fixed through adding a check of the `OverloadedOperatorKind` type's object, `OO`, to see if it is `OO_EqualEqual` in addition to `OO_ExclaimEqual`. Reviewed By: #clang-language-wg, cor3ntin Differential Revision: https://reviews.llvm.org/D155714
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
Instead of calling getSubExpr() again.
-
Kishan Parmar authored
8-bit offset instead of 16-bit unlike other load/store instructions. so if stack grows any further than 8-bit, create one emergency slot for spilling.
-
Fangrui Song authored
:: is now parsed as tok::coloncolon even in C mode.
-
Brad Smith authored
Reorder setMaxAtomicSizeInBitsSupported() in numerical and more logical order. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155379
-
Fangrui Song authored
Similar to D142862. xxh3 is significantly faster than xxh64. Switch to xxh3, as we did for for lld and llvm-dwarfutil to increase performance (D154813 D155675). While I think StringMap is not a bottleneck for most applications, it seems good to eliminate the slower xxh64. In addition, according to Erik Desjardins, an artificial benchmark of Rust with very large constant strings improves by ~3% locally. I have fixed all found issues (~20) separately, but one is remaining: * ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s has a failure due to StringMap iteration order. It now passes with LLVM_ENABLE_REVERSE_ITERATION=on while failing with LLVM_ENABLE_REVERSE_ITERATION=off. Reviewed By: erikdesjardins Differential Revision: https://reviews.llvm.org/D155781
-
Fangrui Song authored
Similar to ae316ac6 for QEMU_(UN)SET_ENV. The iteration order of StringMap is not guaranteed to be deterministic. Sort the entries to give deterministic packets for the tests added by D108018.
-
Fangrui Song authored
Checking the patch version is too strict. Just check major and minor versions as in clang/test/Driver/immediate-options.c.
-
Fangrui Song authored
D145579 leverages the iteration order of StringSet, which is not guaranteed to be deterministic.
-
Amaury Séchet authored
The gain is usually suffiscient to go the extra mile and reconstruct a carry in some cases. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D154533
-
Fangrui Song authored
D118181 leverages the iteration order of StringSet, which is not guaranteed to be deterministic.
-
Fangrui Song authored
The conversion iterates over CodeGenModule::Replacements (a StringMap) and replaces C2/D2 and moves C1/D1 ( commit 0196a1d9 in 2013, to make the output look nicer). The iteration order is not guaranteed to be deterministic, and may cause destructors.cpp to exhibit different function orders. Use a MapVector instead. While here, fix an IWYU issue by adding an explicit include, though MapVector is already used in CodeGenModule.h.
-
Jessica Clarke authored
Commit 674a17e9 ("MIPS/compiler_rt: use synci to flush icache on r6") completely removed the OS-specific guards under the guise of "For pre-r6, we can use cacheflush libc function, which is same on Linux and FreeBSD." However, the code in question had guards for Linux and OpenBSD, not Linux and FreeBSD, and FreeBSD does not have a cacheflush libc function as claimed, so this was neither the statement they intended to make nor was it sufficient justification for making the code completely unconditional. Whilst the upcoming FreeBSD 14 release has dropped support for MIPS, FreeBSD 13 has support for it. Fix this by only calling cacheflush on the OSes where it was previously called, and not on other OSes where it either definitely isn't available (FreeBSD) or is unknown (any other OS than the three mentioned in this commit).
-
Nuno Lopes authored
It's used to specify UB (as ptr argument to store) and to RAUW values when UB occurs.
-
Nuno Lopes authored
This pass creates phi nodes where only one of the incoming values is used. The remaining ones can be poison.
-
Nuno Lopes authored
This is used in shufflevectors where the placeholder arg is unused. It's also used when deleting invariant_start
-
Evgeny Shulgin authored
Ignore constrained perfect forwarding constructors. Fixes: #58230 Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D135476
-
Piotr Zegar authored
Since commit 5d12b13b , warnings are internally classified as errors which skip the check filters. One use-case is particularly affected: you cannot selectively disable clang-analyzer-core checks, they are force-enabled because required by others. So enabling warning as errors will show new (and unwanted) errors ! Co-authored-by:
kiwixz <kiwixz@outlook.com> Fixes: #61969 Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D146520
-
Piotr Zegar authored
Add getCheckTraversalKind to the check in order to ignore some implicit casts when matching expresions. Fixes: #63994 Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D156031
-
Piotr Zegar authored
Change links in cppcoreguidelines module from github repository to isocpp.github.io. Unify format.
-
Craig Topper authored
We were setting the operations as Legal for Zfa in two places. Use an else to avoid this.
-
Shubham Sandeep Rastogi authored
c5a45b25
-
Craig Topper authored
-
Craig Topper authored
[LegalizeTypes] Use report_fatal_error instead of llvm_unreachable in the default case of some type legalization handlers. These can be triggered by in various ways when intrinsics are used wrong or a target doesn't correctly not support something. Using a fatal error prevents strange behavior like infinite loops. We already do this for some of the vector type legalization handles.
-
Craig Topper authored
Instead of always passing OPC_OP_FP just hardcode it inside.
-
Shubham Sandeep Rastogi authored
With https://reviews.llvm.org/D154638, the ability to emit a .debug_addr section has been added to dsymutil. With this, instead of emitting a DW_LLE_baseaddr in the .debug_loclist section, a DW_LLE_baseaddrx can be emitted instead, which will allow for more indirection. Differetial Revision: https://reviews.llvm.org/D155724
-
Shubham Sandeep Rastogi authored
If the DW_AT_addr_base is not set, dsymutil should not copy any addrx attributes into the cloned DIE, which will result in no .debug_addr section being emitted. Differential Revision: https://reviews.llvm.org/D155666
-
Shubham Sandeep Rastogi authored
DWARF5 has support for DW_FORM_addrx, which can be useful for space savings, but it needs a .debug_addr section to be used. dsymutil does not have the ability to emit a debug_addr section currently. This patch adds support for that. Differential Revision: https://reviews.llvm.org/D154638
-
Simon Pilgrim authored
Fixes issue identified on #63980 where the undef rotate amounts (during widening from v2i32 -> v4i32) were being constant folded to 0 when the shift amounts are created during expansion, losing the splat'd shift amounts.
-
Fangrui Song authored
It currently depends on the StringMap iteration order, which is not guaranteed to be deterministic. Use MapVector to stabilize the order.
-
Fangrui Song authored
It currently depends on the StringMap iteration order, which is not guaranteed to be deterministic. Use MapVector to stabilize the order.
-