- Jan 04, 2021
-
-
Roman Lebedev authored
We only need to remove non-TrueBB/non-FalseBB successors, and we only need to do that once. We don't need to insert any new edges, because no new successors will be added.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Nikita Popov authored
As the comment already indicates, performing an operation with nnan/ninf flags on a nan/inf or undef results in poison. Now that we have a proper poison value, we no longer need to relax it to undef.
-
Florian Hahn authored
-
Nikita Popov authored
Div/rem by zero is immediate undefined behavior and anything goes. Currently we fold it to undef, this patch changes it to fold to poison instead, which is slightly stronger. Differential Revision: https://reviews.llvm.org/D93995
-
Kazu Hirata authored
We can erase an item in a set or map without checking its membership first.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Nikita Popov authored
We can't fold the first result to undef, because not all values may be reachable under the constraint that no overflow occurred. Use the same folds we do for saturated math instead. Proofs: uaddo: https://alive2.llvm.org/ce/z/zf55N_ saddo: https://alive2.llvm.org/ce/z/a_xPgS usubo: https://alive2.llvm.org/ce/z/DmRqwt ssubo: https://alive2.llvm.org/ce/z/8ag7U-
-
Nikita Popov authored
This is the same change as D93990, but for extractelement rather than insertelement. > If idx exceeds the length of val for a fixed-length vector, the > result is a poison value. For a scalable vector, if the value of > idx exceeds the runtime length of the vector, the result is a > poison value.
-
Juneyoung Lee authored
This patch makes X86InterleavedAccessGroup::deinterleave8bitStride3 use the unary CreateShuffleVector. This is a continuation of D93923. There were a few missing replacements. IIUC, this patch does not cause change in the generated programs' semantics because the function inserts shufflevectors that only choose elements from the first vector. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D93993
-
Nikita Popov authored
-
- Jan 03, 2021
-
-
Juneyoung Lee authored
This is a simple patch that updates InstSimplify to return poison if the index is/can be out-of-bounds Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D93990
-
Florian Hahn authored
This adds test coverage for the case where we do argument promotion and there's a dead GEP that should be removed/ignored.
-
Juneyoung Lee authored
This patch makes Scalarizer to use poison as insertelement's placeholder. It contains two changes in Scalarizer.cpp, and the both changes does not change the semantics of the optimized program. It is because the placeholder value (poison) is already completely hidden by following insertelement instructions. The first change at visitBitCastInst() creates poison vector of MidTy and consecutively inserts FanIn times, which is # of elems of MidTy. The second change at ScalarizerVisitor::finish() creates poison with Op->getType(), and it is filled with Count insertelements. The test diffs show that the poison value is never exposed after insertelements. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D93989
-
Juneyoung Lee authored
-
Gil Rapaport authored
Let getTruncateExpr() short-circuit to zero when the value being truncated is known to have at least as many trailing zeros as the target type. Differential Revision: https://reviews.llvm.org/D93973
-
Alexey Lapshin authored
That refactoring is helpful since it reduces data inter-dependencies. Which is good for current implementation and even more good for fully multi-thread implementation. The idea of the refactoring is to delete UniquingStringPool from the global DWARFLinker level. It is used to unique type names while ODR deduplication is done. Thus we move UniquingStringPool into the DeclContextTree which matched to UniquingStringPool usage scope. golden-dsymutil/dsymutil 23787992 clang MD5: 7d9873ff94f0246b6ab1ec3e8d0f3f06 build-Release/bin/dsymutil 23921272 clang MD5: 7d9873ff94f0246b6ab1ec3e8d0f3f06 Differential Revision: https://reviews.llvm.org/D93460
-
Nico Weber authored
Revert "[sanitizer] Define SANITIZER_GLIBC to refine SANITIZER_LINUX feature detection and support musl" ...and follow-ups. It still doesn't build on Android, see https://reviews.llvm.org/D93848#2476310 This reverts commit a92d0153. This reverts commit 52d7e183. This reverts commit 34489da8.
-
Lang Hames authored
Patch by Moritz Sichert. Thanks Moritz! Differential Revision: https://reviews.llvm.org/D89373
-
LLVM GN Syncbot authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
Reduced from vanilla test-suite
-
Roman Lebedev authored
The limitation of the current pass that it skips initializer-less GV's seems arbitrary, in all the reduced cases i (personally) looked at, the globals weren't needed, yet they were kept. So let's do two things: 1. allow reducing initializer-less globals 2. before reducing globals, reduce their initializers, much like we do function bodies
-
Roman Lebedev authored
ee6e25e4 changed the delta pass to skip intrinsics, which means we may end up being left with declarations of intrinsics, that aren't otherwise referenced in the module. This is obviously unwanted, do drop them.
-
Roman Lebedev authored
[SimplifyCFG][AMDGPU] AMDGPUUnifyDivergentExitNodes: SimplifyCFG isn't ready to preserve PostDomTree There is a number of transforms in SimplifyCFG that take DomTree out of DomTreeUpdater, and do updates manually. Until they are fixed, user passes are unable to claim that PDT is preserved. Note that the default for SimplifyCFG is still not to preserve DomTree, so this is still effectively NFC.
-
Hongtao Yu authored
`UniqueInternalLinkageNamesPass` is useful to CSSPGO, especially when pseudo probe is used. It solves naming conflict for static functions which otherwise will share a merged profile and likely have a profile quality issue with mismatched CFG checksums. Since the pseudo probe instrumentation happens very early in the pipeline, I'm moving `UniqueInternalLinkageNamesPass` right before it. This is being done only to the new pass manager. Reviewed By: dblaikie, aeubanks Differential Revision: https://reviews.llvm.org/D93656
-
Nathan James authored
-
Brandon Bergren authored
-
Brandon Bergren authored
Enable OpenMP for powerpcle to match the rest of powerpc*. Update tests. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D92445
-
Brandon Bergren authored
Add support for linking powerpcle code in LLD. Rewrite lld/test/ELF/emulation-ppc.s to use a shared check block and add powerpcle tests. Update tests. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D93917
-
Brandon Bergren authored
Add powerpcle support to clang. For FreeBSD, assume a freestanding environment for now, as we only need it in the first place to build loader, which runs in the OpenFirmware environment instead of the FreeBSD environment. For Linux, recognize glibc and musl environments to match current usage in Void Linux PPC. Adjust driver to match current binutils behavior regarding machine naming. Adjust and expand tests. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D93919
-
Brandon Bergren authored
Add object file handling for powerpcle-*-*. Adjust tests. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D93916
-
Brandon Bergren authored
Add a triple for powerpcle-*-*. This is a little-endian encoding of the 32-bit PowerPC ABI, useful in certain niche situations: 1) A loader such as the FreeBSD loader which will be loading a little endian kernel. This is required for PowerPC64LE to load properly in pseries VMs. Such a loader is implemented as a freestanding ELF32 LSB binary. 2) Userspace emulation of a 32-bit LE architecture such as x86 on 64-bit hosts such as PowerPC64LE with tools like box86 requires having a 32-bit LE toolchain and library set, as they operate by translating only the main binary and switching to native code when making library calls. 3) The Void Linux for PowerPC project is experimenting with running an entire powerpcle userland. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D93918
-
Michał Górny authored
Copy changes, including: - NativeProcessNetBSD::GetLoadedModuleFileSpec() and NativeProcessNetBSD::GetFileLoadAddress() methods - split x86 register sets by CPU extensions - use offset/size-based register reading/writing Differential Revision: https://reviews.llvm.org/D93541
-
Pavel Labath authored
Use auto-generation of lldb-server&debugserver variants.
-
Pavel Labath authored
-