- Aug 01, 2021
-
-
Shimin Cui authored
I'm working on extending the OptimizeGlobalAddressOfMalloc to handle some more general cases. This is to add support of the ConstantExpr use of the global variables. The function allUsesOfLoadedValueWillTrapIfNull is now iterative with the added CE use of GV. Also, the recursive function valueIsOnlyUsedLocallyOrStoredToOneGlobal is changed to iterative using a worklist with the GEP case added. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D106589
-
Jan Kratochvil authored
Its last use was removed by D63428.
-
Hsiangkai Wang authored
Add inline asm constraint 'vr' for vector registers and 'vm' for vector mask registers. Differential Revision: https://reviews.llvm.org/D106633
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D107139
-
Eli Friedman authored
Currently, the default alignment is much larger than the actual size of the vector in memory. Fix this to use a sane default. For SVE, temporarily remove lowering of load/store operations for predicates with less than 16 elements. The layout the backend was assuming for SVE predicates with less than 16 elements doesn't agree with the frontend. More work probably needs to be done here. This change is, strictly speaking, not backwards-compatible at the bitcode level. But probably nobody is actually depending on that; i1 vectors in memory are rare, and the code that does use them probably ends up forcing the alignment to something sane anyway. If we think this is a concern, I can restrict this to scalable vectors for now (where it's actually causing issues for me at the moment). Differential Revision: https://reviews.llvm.org/D88994
-
Eli Friedman authored
-
Eli Friedman authored
Target-dependent constant folding will fold these down to simple constants (or at least, expressions that don't involve a GEP). We don't need heroics to try to optimize the form of the expression before that happens. Fixes https://bugs.llvm.org/show_bug.cgi?id=51232 . Differential Revision: https://reviews.llvm.org/D107116
-
Aart Bik authored
Introduces a conversion from one (sparse) tensor type to another (sparse) tensor type. See the operation doc for details. Actual codegen for all cases is still TBD. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D107205
-
Sanjay Patel authored
The check for size_t parameter 1 was already here for snprintf_chk, but it wasn't applied to regular snprintf. This could lead to mismatching and eventually crashing as shown in: https://llvm.org/PR50885
-
Craig Topper authored
fcvt.w(u) supports multiple rounding modes, but the ISD node doesn't encode that. So name it to match the rounding mode it uses.
-
Sanjay Patel authored
I don't know much about this pass, but we need a stronger check on the memset length arg to avoid an assert. The current code was added with D59000. The test is reduced from: https://llvm.org/PR50910 Differential Revision: https://reviews.llvm.org/D106462
-
Sanjay Patel authored
We can invert a compare constant and preserve the logic as shown in this sampling: https://alive2.llvm.org/ce/z/YAXbfs (In theory, we could deal with non-all-ones/zero as well, but it doesn't seem worthwhile.) I noticed this as a part of the x86 codegen difference in https://llvm.org/PR51259 - it ends up using "test" instead of "not + cmp" in that example. This pattern also shows up in https://llvm.org/PR41312 and https://llvm.org/PR50798 . Differential Revision: https://reviews.llvm.org/D107170
-
Simon Pilgrim authored
[TTI] Make SK_ExtractSubvector matching length-changing only and simplify nested shuffle mask detection chain. Match style and don't use an else after a return. Minor cleanup for an upcoming SK_InsertSubvector patch.
-
pooja2299 authored
-
- Jul 31, 2021
-
-
David Green authored
It can be beneficial to attempt to try the larger VMLAV patterns before VADDV, in case both may match the same code.
-
David Green authored
-
Florian Hahn authored
-
Matt Arsenault authored
This has the same problems and limitations as the load path.
-
Matt Arsenault authored
The load/store tests are giant and have some cases that fail in them, but it's hard to tell which ones are really failing. Check the remarks to make it easier to track.
-
Kazu Hirata authored
The last use was removed on Mar 13, 2020 in commit 6b57d7f5.
-
Simon Pilgrim authored
If all demanded elements of the BUILD_VECTOR pass a isGuaranteedNotToBeUndefOrPoison check, then we can treat this specific demanded use of the BUILD_VECTOR as guaranteed not to be undef or poison either. Differential Revision: https://reviews.llvm.org/D107174
-
Matt Arsenault authored
This is NFC until some of the AMDGPU legalization rules are ripped out.
-
Uday Bondhugula authored
NFC. Clean up stale doc comments on memref replacement utility and some variable renaming in it to avoid confusion. Differential Revision: https://reviews.llvm.org/D107144
-
Alexandros Lamprineas authored
This patch legalizes the Machine Value Type introduced in D94096 for loads and stores. A new target hook named getAsmOperandValueType() is added which maps i512 to MVT::i64x8. GlobalISel falls back to DAG for legalization. Differential Revision: https://reviews.llvm.org/D94097
-
Alexandros Lamprineas authored
Adds MVT::i64x8, a Machine Value Type needed for lowering inline assembly operands which materialize a sequence of eight general purpose registers. Differential Revision: https://reviews.llvm.org/D94096
-
Alexandros Lamprineas authored
In LLVM IR terms the ACLE type 'data512_t' is essentially an aggregate type { [8 x i64] }. When emitting code for inline assembly operands, clang tries to scalarize aggregate types to an integer of the equivalent length, otherwise it passes them by-reference. This patch adds a target hook to tell whether a given inline assembly operand is scalarizable so that clang can emit code to pass/return it by-value. Differential Revision: https://reviews.llvm.org/D94098 -
Eric Leese authored
This change makes sure that DwarfUnit does not load a .dwo file until necessary. I also take advantage of DWARF 5's guarantee that the first support file is also the primary file to make it possible to create a compile unit without loading the .dwo file. Testcases now require Linux as it is needed for -gsplit-dwarf. Review By: jankratochvil, dblaikie Differential Revision: https://reviews.llvm.org/D100299
-
Fangrui Song authored
This causes the test to fail if %S is under /tmp
-
Dmitry Vyukov authored
Some bots started failing with the following error after changing Alloc to New. Change it back. ThreadSanitizer: CHECK failed: ((locked[i].recursion)) == ((0)) 4 __sanitizer::CheckedMutex::CheckNoLocks() 5 __tsan::ScopedInterceptor::~ScopedInterceptor() 6 memset 7 __tsan::New<__tsan::ExpectRace>() 8 __tsan::AddExpectRace() 9 BenignRaceImpl() Differential Revision: https://reviews.llvm.org/D107212
-
Dmitry Vyukov authored
Currently we inconsistently use u32 and int for thread ids, there are also "unique tid" and "os tid" and just lots of other things identified by integers. Additionally new tsan runtime will introduce yet another thread identifier that is very different from current tids. Similarly for stack IDs, it's easy to confuse u32 with other integer identifiers. And when a function accepts u32 or a struct contains u32 field, it's not always clear what it is. Add Tid and StackID typedefs to make it clear what is what. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107152
-
Dmitry Vyukov authored
We currently build tests without -g, which is quite inconvenient. Crash stacks don't have line numbers, gdb don't how line numbers either. Always build tests with -g. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107168
-
Dmitry Vyukov authored
"Expected" races is a very ancient facility used in tsanv1 tests. It's not used/needed anymore. Remove it. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107175
-
Dmitry Vyukov authored
Currently we setup either sigaction signal handler with 3 arguments or old style signal handler with 1 argument depending on user handler type. This unnecessarily complicates code. Always setup sigaction handler. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107186
-
Vitaly Buka authored
-
Petr Hosek authored
This reverts commit bb438f6c since it broke our Windows builders and we need more time to investigate the issue.
-
Petr Hosek authored
This fixes support for merging profiles which broke as a consequence of e50a3884. The issue was missing adjustment in merge logic to account for the binary IDs which are now included in the raw profile just after header. In addition, this change also: * Includes the version in module signature that's used for merging to avoid accidental attempts to merge incompatible profiles. * Moves the binary IDs size field after version field in the header as was suggested in the review. Differential Revision: https://reviews.llvm.org/D107143
-
Petr Hosek authored
This reverts commit dcadd649.
-
Stella Stamenova authored
This reverts commit 8dfd6cae. This change broke the windows lldb bot: https://lab.llvm.org/buildbot/#/builders/83/builds/8842
-
Siva Chandra Reddy authored
-
Vitaly Buka authored
cpplint was removed by D107197 Differential Revision: https://reviews.llvm.org/D107198
-