- Feb 07, 2024
-
-
Jay Foad authored
-
Nikita Popov authored
Similar to the non-ptr case, directly create the getelementptr instruction. Going through expandAddToGEP() no longer makes sense with opaque pointers, where generating the necessary instruction is trivial. This avoids recursive expansion of (the SCEV of) StepV while the IR is in an inconsistent state, in particular with an incomplete IV phi node, which utilities may not be prepared to deal with. Fixes https://github.com/llvm/llvm-project/issues/80954.
-
Nikita Popov authored
Check whether the condition is in the expected format before performing more expensive dominator checks.
-
Nikita Popov authored
Check output IR instead of debug output. The debug output will change in an upcoming patch in an irrecoverable way.
-
Kareem Ergawy authored
`createBodyOfOp` This refactors the arguments to the above functions in 2 ways: - Combines the 2 structs of arguments into one since they were almost identical. - Replaces the `args` argument with a callback to a rebion-body generation function. This is a preparation for delayed privatization as we will need different callbacks for ws loops and parallel ops with delayed privatization.
-
Thomas Preud'homme authored
Truncate result of avgpool when accumulation is done in a wider type than the result element type, such as when doing a f16 avgpool2d with a f32 accumulator type.
-
jeanPerier authored
https://github.com/llvm/llvm-project/pull/80683 revealed that hlfir.as_expr was propagating the temporary buffer for polymorphic values as an allocatable while codegen later expects to be working with fir.box/fir.class but not fir.ref<box/class> when processing the operations using the hlfir.as_expr result. Dereference the temporary allocatable as soon as it is created.
-
Aiden Grossman authored
The middle half repetition mode test sometimes fails on the avx512 buildbots due to a negative value being produced. This needs more investigation, but add a retry count temporarily to alleviate false-positive errors on the buildbots. This is being tracked in #80957.
-
Yi Kong authored
-
jeanPerier authored
Fortran requires finalizing function results when the result type have final procedures. Lowering was unconditionally "moving" function results into values "hlfir.expr". This is not correct when the results are finalized because it means the function result storage will be used after the hlfir.expr. Only move function results that are not finalized.
-
Cullen Rhodes authored
This patch introduces support for 4-way widening outer products. This enables the fusion of 4 'arm_sme.outerproduct' operations that are chained via the accumulator into single widened operations. Changes: - Adds the following operations: - smopa_4way, smops_4way - umopa_4way, umops_4way - sumopa_4way, sumops_4way - sumopa_4way, sumops_4way - Implements conversions for the above ops to intrinsics in ArmSMEToLLVM. - Extends 'arm-sme-outer-product' pass. For a detailed description of these operations see the 'arm_sme.smopa_4way' description.
-
Carl Ritson authored
This reverts commit d6c7253d. Change causing CTS failures due to incomplete metadata.
-
Wang Pengcheng authored
To make the structure of TableGen files clear.
-
Matthias Springer authored
There are two `notifyMatchFailure` methods: one in the rewriter and one in the listener. The one in the rewriter notifies the listener and returns "failure" for convenience. The one in the listener should not return anything; it is just a notification. It can currently be abused to return "success" from the rewriter function. That would be a violation of the rewriter API rules. Also make sure that the listener is always notified about match failures, not just with `NDEBUG`. The current implementation is consistent: one `notifyMatchFailure` overload notifies only in debug mode and another one notifies all the time.
-
Björn Pettersson authored
- Added a warning about the pass list being incomplete (and hint about "opt -print-passes" listing known passes). - Removed legacy PM example involving "opt -analyze". - print-function and print-module does not exist with those names in the new PM. Since the document has been updated to reflect the new PM names earlier, those names were changed into referring to function(print) and module(print) instead. - Resolved some FIXME:s around strip* passes.
-
Job Noorman authored
Fixes #75771
-
Carl Ritson authored
If part of a register (lowered from REG_SEQUENCE) is undefined then we should propagate undef flags to uses of those lanes. This is only performed when live intervals are present as it requires live intervals to correctly match uses to defs, and the primary goal is to allow precise computation of subrange intervals.
-
Jie Fu authored
llvm-project/llvm/lib/Target/RISCV/RISCVTargetMachine.cpp:358:27: error: unused variable 'ST' [-Werror,-Wunused-variable] const RISCVSubtarget &ST = C->MF->getSubtarget<RISCVSubtarget>(); ^ 1 error generated. -
Wang Pengcheng authored
We can get the fusions list by `getMacroFusions` and if it is not empty, then we will add the MacroFusion mutation automatically.
-
Timm Bäder authored
Initialize both elements to 0, once again.
-
Timm Bäder authored
See the comment I added. When initializing a complex value from a DeclRefExpr, we need to manually copy both array elements. This adds some unfortunate code duplication that I'm still pondering on how to get rid of best.
-
Freddy Ye authored
Relate gcc file: https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/cpuid.h
-
Craig Topper authored
-
Jie Fu authored
llvm-project/mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp:522:1: error: unused function 'isValueCompatibleWithFullReplicationSharding' [-Werror,-Wunused-function] isValueCompatibleWithFullReplicationSharding(Value value, ^ 1 error generated.
-
AtariDreams authored
-
Serge Pavlov authored
Global Instruction Selector could not select the code: %0:gprb(s32) = G_CONSTANT i32 -1 In DAG selector the similar code is selected to the instruction MVNi using custom operand `mod_imm_not`. Changing its definition from `PatLeaf` to `ImmLeaf` and providing counterpart for `imm_not_XFORM` make the relevant rule available for GlobalISel too. -
Boian Petkantchin authored
Add a pass that converts a function that has sharding annotations into SPMD form.
-
Jason Eckhardt authored
Currently, for some tables involving a single primary key field which is integral and densely numbered, a direct lookup is generated rather than a binary search. This patch extends the direct lookup function generation to instructions, where the integral value corresponds to the instruction's enum value. While this isn't as common as for other tables, it does occur in at least one downstream backend and one in-tree backend. Added a unit test and minimally updated the documentation.
-
Maksim Panchenko authored
We used to delete most instruction annotations before code emission. It was done to release memory taken by annotations and to reduce overall memory consumption. However, since the implementation of annotations has moved to using existing instruction operands, the memory overhead associated with them has reduced drastically. I measured that savings are less than 0.5% on large binaries and processing time is just slightly reduced if we keep them. Additionally, I plan to use annotations in pre-emission passes for the Linux kernel rewriter.
-
Craig Topper authored
-
Wang Pengcheng authored
We can use `!cast` to cast `NAME` to `ProcResourceKind`.
-
Visoiu Mistrih Francis authored
Registers that are pushed/popped by Zcmp or libcalls have pre-defined frame indices that are never allocated in MachineFrameInfo. They're being used throughout PEI, but the rest of codegen doesn't work that way and expects each frame index to be a valid index in MFI. This patch keeps it local to PEI and removes them from the CalleeSavedInfo list at the end of the pass. Before this pass, any MIR testing post-PEI is broken and asserts (see issue #79491).
-
Philip Reames authored
-
Philip Reames authored
-
Enna1 authored
-
Wanyi authored
The typo DocStrings.i broke linux buildbots
-
Michael Maitland authored
This function can be called from buildCopyToRegs where at least one of the types is a scalable vector type. This function crashed because it did not know how to handle scalable vector types. This patch extends the functionality of getLCMType to handle when at least one of the types is a scalable vector. getLCMType between a fixed and scalable vector is not implemented since the docstring of the function explains that getLCMType is used to build MERGE/UNMERGE instructions and we will never build a MERGE/UNMERGE between fixed and scalable vectors.
-
Heejin Ahn authored
The CPU tests in this file are not working as intended. Specifying `-mcpu=[mvp|generic|bleeding-edge]` in `clang` command line does NOT add arguments like `-target-feature`, `+feature-name`, ... to `clang-14` command line. Specifying `-mcpu=[mvp|generic|bleeding-edge]` in `clang` command line will just add `-target-cpu` `[mvp|generic|bleeding-edge]` to `clang-14` command line, and individual features are added here within `clang-14` invocation: https://github.com/llvm/llvm-project/blob/5b780c8c6c558ec283a9eec485a4f172df0f9fe1/clang/lib/Basic/Targets/WebAssembly.cpp#L150-L163 The reason these CPU tests are passing is because they only have `-NOT` checks, and we don't emit `-target-feature` arguments for them anyway, the test passes, but they don't check what they are supposed to check. This make CPU tests only check `-target-cpu` lines instead of individual features, which will not be emitted.
-
Heejin Ahn authored
This adds tests for `generic` cpu configuration. We had tests for `mvp` and `bleeding-edge` configs but not `generic`.
-
LLVM GN Syncbot authored
-