- Nov 10, 2022
-
-
Louis Dionne authored
-
Tom Stellard authored
This was broken by a11cd0d9.
-
Nico Weber authored
-
Lei Zhang authored
This is useful for breaking down extract_strided_slice and potentially cancel with other extract / insert ops before or after. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D137471
-
Dinar Temirbulatov authored
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 -
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137585
-
Lang Hames authored
-
Slava Zakharin authored
The main purpose of this patch is to propagate fastmath attribute to SimplifyIntrinsicsPass, so that the inline code can inherit the call operation's attributes. Even though I added translation of fastmath from fir::CallOp to LLVM::CallOp, there are no fastmath attributes in LLVM IR. It looks like the translation drops it. This will need additional commits. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D137602
-
Tom Stellard authored
Rre-commit of 59052468 with a typo fix in compiler-rt/CMakeLists.txt
-
Slava Zakharin authored
Plugged in propagation of nnan/nsz/arcp/afn/reassoc related options to lowering/FirOpBuilder. Reviewed By: jeanPerier, tblah, awarzynski Differential Revision: https://reviews.llvm.org/D137580
-
Alexander Shaposhnikov authored
This is a follow-up to D126250 and enables LDAPR if the RCPC extensions are enabled. Test plan: ninja check-all Differential revision: https://reviews.llvm.org/D137590
-
Nikolas Klauser authored
It looks like we forgot to set the FTM when adding constexpr vector support. Reviewed By: ldionne, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D137729
-
Aart Bik authored
(1) also fixes memory leak in sparse2dense rewriting (2) still needs fix in dense2sparse by skipping zeros Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D137736
-
Sander de Smalen authored
Reverting the patch due to a buildbot failure. This reverts commit e1e260cc.
-
Michael Francis authored
Differential Review: https://reviews.llvm.org/D137372
-
stanley-nod authored
Quantization method is crucial and ubiqutous in accelerating machine learning workloads. Most of these methods uses f16 and i8 types. This patch relaxes the type contraints on warp reduce distribution to allow these types. Furthermore, this patch also changed the interface and moved the initial reduction of data to a single thread into the distributedReductionFn, this gives flexibility for developers to control how they are obtaining the initial lane value, which might differ based on the input types. (i.e to shuffle 32-width type, we need to reduce f16 to 2xf16 types rather than a single element). Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D137691
-
Michael Francis authored
Differential Review: https://reviews.llvm.org/D137373
-
Leonard Chan authored
__sanitizer_library_loaded on Fuchsia Differential Revision: https://reviews.llvm.org/D133806
-
Leonard Chan authored
Fuchsia's libc provides a new hook (__sanitizer_module_loaded) which calls hwasan_library_loaded in the startup path which will register globals in loaded modules. Differential Revision: https://reviews.llvm.org/D137676
-
Jannik Silvanus authored
When a phi node references a variable defined in a basic block dominated by the the basic block containing the phi node, llvm-diff currently cannot determine whether the variable is equivalent, and thus treats the phi node as different and reports a difference. This leads to false positive differences as demonstrated by the loop.ll diff, for which llvm-diff reports a diff when comparing the file with itself. Fix that issue by adding the concept of *equivalence assumptions*. When encountering a pair of values which can neither be proven to be equivalent nor to be non-equivalent, instead optimistically assume equivalence, and store somewhere that the equivalence of the currently compared basic blocks depends on this assumption. Later, once all BBs have been processed, check all made assumptions and report blocks as different whose equivalence was depending on an incorrect assumption, or an assumption we could not prove to be correct. In order to preserve the original diff report order, also schedule diffs of blocks already known to be different using the same mechanism, so all block diffs are now generated at the very end of function diffing. In case an incorrect assumption was made, all further shown equivalences between old and new values implictly depend on the incorrect assumption. Some of these may in fact be not equivalent, but these are neither reverted nor reported, because they are considered indirect diffs caused by an earlier direct diff. See inline comments for an argument why we do not run into issues caused by circular proof dependencies. Differential Revision: https://reviews.llvm.org/D137318
-
Tom Stellard authored
This reverts commit 59052468. It looks like this patch breaks the build when compiler-rt is passed to LLVM_ENABLE_PROJECTS instead of LLVM_ENABLE_RUNTIMES.
-
Craig Topper authored
These instructions set, clear, or invert a single bit. If their users don't use the upper 32 bits, they don't use the upper 32 bits of their input. Additionally the second operand BSET/BCLR/BINV is a shift amount which only uses 6 bits of the source. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137452
-
Craig Topper authored
These operands use 6 bits. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137450
-
Craig Topper authored
The first use operand of these is implicitly zero extended. We can consider that a W read. If the use is the other operand, we need to look through the instruction. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137449
-
Craig Topper authored
After D137446 we can see which operand is the user. If the user is the value operand of a SB/SH/SW then the upper 32 bits aren't used. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137448
-
Craig Topper authored
Instead of storing the uses to check in the worklist, store the instruction we want to check uses for. Now we pop and instruction from the worklist, loop over its uses and check them. If it's something we need to look across, we'll push it to the worklist. By doing it this way, we can have access to which operand of the user is using the instruction. This will allow supporting store instructions since we'll be able to disambiguate the the value operand and the pointer operand. We can also improve support for *add.uw instructions and shift amount uses. Reviewed By: mohammed-nurulhoque, asb Differential Revision: https://reviews.llvm.org/D137446
-
Craig Topper authored
As far as I understand, this disables all integer vectors too. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D134089
-
Lang Hames authored
Weak symbols can be overridden while they're in the NeverSearched state, but should not be able to be overridden once they've been bound by some lookup. Historically we guaranteed this by stripping the weak flag once a symbol as bound, causing it to appear as if it were strong. In ffe2dda2 we changed that behavior to retain weak flags on symbols (to facilitate tracking for dynamic re-binding during dlopen). This test checks that we still fail as required after ffe2dda2.
-
Tom Stellard authored
This will help improve the project's layering, so that sub-projects that don't actually need any llvm code can still use googletest without having to reference code in the llvm directory. This will also make it easier to consolidate and simplify the standalone build configurations. Reviewed By: stellaraccident, lattner, probinson, phosek Differential Revision: https://reviews.llvm.org/D131919
-
Renaud-K authored
and their corresponding attributes are moved together Differential revision: https://reviews.llvm.org/D13767
-
v1nh1shungry authored
Avoid adding qualifiers before user-defined literals Reviewed By: tom-anders Differential Revision: https://reviews.llvm.org/D137550
-
Jim Ingham authored
This didn't work previously because we had to check whether the incoming command was an alias command, but if it wasn't we still used the result of that lookup - which was by the command's node name. That fails for non-top-level commands. In this case, the resolution is pretty simple since we already have the node's CommandObject, so all we needed to do was turn it into a shared pointer, for which I added enable_shared_from_this to the CommandObject. Differential Revision: https://reviews.llvm.org/D137662
-
Jim Ingham authored
We generally prohibit this at a higher level - for instance requiring the process to be stopped for "expr". But when we trigger an expression for internal purposes (e.g. to fetch types from the ObjC runtime) we weren't checking the process state. Now we explicitly check this at the very start of the job so we don't get into bad states. Differential Revision: https://reviews.llvm.org/D137684
-
Ilya Biryukov authored
-
Jason Molenda authored
lang/cpp/unique-types/TestUniqueTypes.py already exists.
-
Simon Pilgrim authored
Broadwell/Haswell were completely overriding the WriteCvtPD2I class defs - we can remove those overrides entirely by just choosing better class defs. Also fixes the scheduler for a missing YMM folded case - confirmed with Agner + uops.info that the port usage is correct
-
Jon Chesterfield authored
Looks like this composed poorly with a nominally independent patch, will fix This reverts commit 0ba03985.
-
Jon Chesterfield authored
isKernelCC != isKernel(F->getCallingConv()) There's a test case (lower-kernel-lds.ll) that explicitly skips amdgpu_ps so this change picks the isKernel predicate that continues to skip that calling convention. isKernel returns true for AMDGPU_KERNEL and SPIR_KERNEL. isKernelCC also returns true for other calling conventions. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D136599
-
Jon Chesterfield authored
This reverts commit eedbe44b.
-
Sander de Smalen authored
This patch ensures that GlobalISel and FastISel fall back to regular DAG ISel when: * A function requires streaming-mode to be enabled at the start/end of the function. This happens when the function has no streaming interface, but does have a streaming body. * A function requires a lazy-save to be committed at the start of the function. This happens if the function has the `aarch64_pstate_za_new` attribute. * A call to a function requires a change in streaming-mode. * A call to a function requires a lazy-save buffer to be set up. Patch by @CarolineConcatto Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D136361
-