- Jun 16, 2023
-
-
Craig Topper authored
If the result register is used, it is not safe to delete. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D153076
-
Fangrui Song authored
The only caller `AttemptToFoldSymbolOffsetDifference` has performed the same checks.
-
Alex Langford authored
None of these need to be in the ConstString StringPool. For the most part they are constant strings and do not require fast comparisons. I did change IOHandlerDelegateMultiline slightly -- specifically, the `m_end_line` member always has a `\n` at the end of it now. This was so that `IOHandlerGetControlSequence` can always return a StringRef. This did require a slight change to `IOHandlerIsInputComplete` where we must drop the newline before comparing it against the input parameter. Differential Revision: https://reviews.llvm.org/D151597
-
Alex Langford authored
Currently, `SectionFileAddressesChanged` clears out the `name_to_index` map and sets `m_file_addr_to_index_compute` to false. This is strange, as these two fields are used for different purposes. What we should be doing is clearing the file address to index mapping. There are 2 bugs here: 1. If we call SectionFileAddressesChanged after the name indexes have been computed, we end up with an empty name to index map, so lookups will fail. This doesn't happen today because we don't initialize the name indexes before calling this, but this is a refactor away from failing in this way. 2. Because we don't clear `m_file_addr_to_index` but still set it's computed flag to false, it ends up with twice the amount of information. One entry will be correct (since it was recalculated), one entry will be outdated. rdar://110192434 Differential Revision: https://reviews.llvm.org/D152579
-
Simon Pilgrim authored
-
Simon Pilgrim authored
IMPLICIT_DEF can lead to some pretty weird G_UNMERGE_VALUES of long lists of s1 values, try to use a real source value instead
-
Artem Belevich authored
-
Kazuki Sakamoto authored
lldb-server for Android does not build with NDK r21 and above due to RetryAfterSignal and Bionic ::open mismatch. https://github.com/llvm/llvm-project/issues/54727 Apply the LLVM patch to LLDB. https://github.com/llvm/llvm-project/commit/0a0e411204a2baa520fd73a8d69b664f98b428ba > In Bionic, open can be overloaded for _FORTIFY_SOURCE support, causing > compile errors of RetryAfterSignal due to overload resolution. Wrapping > the call in a lambda avoids this. Differential Revision: https://reviews.llvm.org/D152712
-
Arthur Eubanks authored
-
Philip Reames authored
[RISCV][InsertVSETVLI] Treat vmv.v.i as-if it were vmv.s.x when VL=1, and inactive lanes are undefined A vmv.v.i/x splats the immediate to all active lanes. For the active lanes, this is the same as vmv.s.x which inserts one scalar into the low lane. If we can ignore all the inactive lanes (because they are known undefined), then the two are semantically equivalent. We already reason about compatible VL/VTYPE combinations for vmv.s.x, apply the same logic to vmv.v.i. Unlike a vmv.s.x, we do need to be careful not to increase LMUL. A splat instruction is probably linear in LMUL, so restrict this to LMUL1. Differential Revision: https://reviews.llvm.org/D152845
-
Peiming Liu authored
[mlir][sparse] using stable_sort to make sure the compiled code are consistent between different builds configuration Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D153074
-
Aart Bik authored
This specific operation matches the cuSPARSE SDDMM semantics exactly. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D152969
-
Arthur Eubanks authored
Instead of setting the SimplifyCFGOptions options at the beginning of the pass. Otherwise it always gets overriden by the pass and the value in SimplifyCFGOptions is ignored.
-
Fangrui Song authored
We always pass a non-null F to flushPendingLabels. Wait a bit before changing the parameter to use a reference.
-
Joseph Huber authored
Switching to this interface we neglected to actually write the output from the malloc call to the RPC buffer. Fix this so the tests pass again. Differential Revision: https://reviews.llvm.org/D153069
-
Pranav Kant authored
-
David Green authored
This ensures a removed register does not get reused as we replace constant vpt values.
-
Fangrui Song authored
-
Fangrui Song authored
Many code paths are untested. Some "expected ..." messages are adjusted, otherwise NFC.
-
LLVM GN Syncbot authored
-
Amir Ayupov authored
Align perf reader to fdata behavior by sorting BranchData after reading samples, in the same way as DataReader: https://github.com/llvm/llvm-project/blob/20c66a0c66340f44f04b6526e45bcc5d872d480a/bolt/lib/Profile/DataReader.cpp#L1239 Namely, that order affects CallSiteInfo annotations which determine the construction order of CallGraph, which in turn affects function reordering. Reviewed By: #bolt, rafauler Differential Revision: https://reviews.llvm.org/D152731
-
Craig Topper authored
Recommit "[SelectionDAG][RISCV] Add very basic PromoteIntegerResult/Op support for VP_SIGN/ZERO_EXTEND." I have fixed an existing DAGCombiner bug that caused the previous assertion failure. See 71635394. Original message We don't have VP_ANY_EXTEND or VP_SIGN_EXTEND_INREG yet so I've deviated a little from the non-VP lowering. My goal was to fix the crashes that occurs on these test cases without this patch. Reviewed By: fakepaper56 Differential Revision: https://reviews.llvm.org/D152854
-
Fangrui Song authored
-
Mehdi Amini authored
-
Fangrui Song authored
-
Craig Topper authored
[DAGCombiner] When combining (sext_inreg (zext X), VT) -> (sext X) don't pass along the sext_inreg VT. ISD::SIGN_EXTEND is only supposed to have one operand, but we were creating it with 2 operands. Since we basically never check for extra operands this went unnoticed.
-
Zequan Wu authored
-
Louis Dionne authored
After the Black reformatting changes, the code became pretty hard to read and inconsistently formatted. This fixes that. Differential Revision: https://reviews.llvm.org/D152839
-
Fangrui Song authored
-
Spenser Bauman authored
The existing lowering for tosa.concat fails in some instances when the output shape contains more information the input shapes. The result is an illegal tensor.empty operation. This change bases the output shape on the original tosa.concat operation, while querying the input tensor shapes to build the slicing operations. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D151707
-
Fangrui Song authored
-
Joseph Huber authored
These tests have a single line that fails with a value off-by-one, see https://lab.llvm.org/buildbot/#/builders/46/builds/50055/steps/12/logs/stdio . Disable these for now so we can figure out what the error is later. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D153056
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: ldionne, libcxx-commits Differential Revision: https://reviews.llvm.org/D152853
-
Stanislav Mekhanoshin authored
Check superreg/subreg defs of an instruction when checking for dependencies. This may cause some regressions, but better be safe than sorry. Changed tests are affected because of the implicit-defs of the superregs. Differential Revision: https://reviews.llvm.org/D152943
-
Rob Suderman authored
We always assume mixed same type values. Instead of ExtF or ExtSI, we need SIToFp when the values must be promoted. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D152982
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: power-llvm-team, ldionne, libcxx-commits, arichardson, mstorsjo Differential Revision: https://reviews.llvm.org/D152939
-
Alex Langford authored
I want to add some error handling to DynamicRegisterInfo because there are many operations that can fail and many of these operations do not give meaningful information back to the caller. To begin that process, I want to add a static method that is responsible for creating a DynamicRegisterInfo from a StructuredData::Dictionary (and ArchSpec). This is meant to replace the equivalent constructor because constructors are ill-equipped to perform error handling. Differential Revision: https://reviews.llvm.org/D152594
-
rikhuijzer authored
As pointed out by @Sinclair-Dee in https://github.com/llvm/llvm-project/issues/62304, the `tosa-to-linalg` conversion ignored the `encoding` attribute. Also, this patch avoids an assertion error crash on unranked tensors. Instead, the conversion now throws a "failed to legalize" error. Fixes #62304 and fixes #63165. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D152171
-
Kun Wu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D152966
-
eopXD authored
Depends on D152138. This is the 6th commit of the patch-set. This patch makes the indexed segment store intrinsics to use tuple types. Reviewed By: rogfer01 Differential Revision: https://reviews.llvm.org/D152139
-