- Jul 03, 2023
-
-
Matthias Springer authored
* Add `memref::getMixedSize` (same as in the tensor dialect). * Simplify in-bounds check in `VectorTransferSplitRewritePatterns.cpp` and fix off-by-one error in the static in-bounds check. * Use "memref::DimOp" instead of `createOrFoldDimOp` when possible. Differential Revision: https://reviews.llvm.org/D154218
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D154211
-
Ben Shi authored
Add more `Pat`s to generate BLZ32/BLSZ32/BHZ32/BHSZ32. Reviewed By: zixuan-wu Differential Revision: https://reviews.llvm.org/D153607
-
Ben Shi authored
Reviewed By: zixuan-wu Differential Revision: https://reviews.llvm.org/D153518
-
Matthias Springer authored
This op applies CSE to the targeted op. This is similar to `transform.apply_registered_pass "cse"`, but it retains handles in the body of the targeted op. Differential Revision: https://reviews.llvm.org/D154099
-
Matthias Springer authored
* All IR modifications are done with a rewriter. * The new C++ entry point takes a `RewriterBase &`, which may have a listener attached to it. This revision is useful because it allows users to run CSE and track IR modifications via a listener that can be attached to the rewriter. This is a reupload. The original CL was reverted (9979417d) due to a memory leak. The memory leak is unrelated to this change and fixed with D154185. Differential Revision: https://reviews.llvm.org/D145226
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D154185
-
Jie Fu authored
/Users/jiefu/llvm-project/flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp:617:14: error: implicit conversion turns string literal into bool: 'const char[39]' to 'bool' [-Werror,-Wstring-conversion] assert("Invalid vector operation for generator"); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
Kelvin Li authored
Differential Revision: https://reviews.llvm.org/D154167
-
Chuanqi Xu authored
Close https://github.com/llvm/llvm-project/issues/63639 This comes from the oversight the refactoring that we missed a `return false;` in the loop.
-
Freddy Ye authored
This is also a pre-commit change for D151696 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D154209
-
Alfred Persson Forsberg authored
Reviewed By: michaelrj, thesamesam Differential Revision: https://reviews.llvm.org/D153729
-
Eugene Zhulenev authored
Value is not convertible to TypedValue<T>, use explicit constructor from a pointer Differential Revision: https://reviews.llvm.org/D154313
-
Eugene Zhulenev authored
Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D154310
-
Maurice Heumann authored
In change https://reviews.llvm.org/D152790, it was discovered that the alignment requirement calculation for LDRD/STRD codegen was suboptimal and the calculation for volatile loads and stores was adjusted. This change here adopts the calculation for the remaining non-volatile occurances. Differential Revision: https://reviews.llvm.org/D153800
-
Eli Friedman authored
For inheriting constructors which have to be emitted inline, we use CodeGenFunction::EmitInlinedInheritingCXXConstructorCall to emit the required code. This code uses EmitParmDecl to emit the "this" argument of the call. EmitParmDecl then helpfully calls llvm::Value::setName to name the parameter... which renames the global variable to "this". To fix the issue, skip the setName call on globals. The renaming still has slightly weird results in other cases (it renames all local variables initialized with an inlined inheriting constructor to "this"), but the result isn't actually wrong in those cases, so I'm just going to leave it for now. Fixes https://github.com/llvm/llvm-project/issues/63618 Differential Revision: https://reviews.llvm.org/D154270
-
Florian Hahn authored
-
Aaron Ballman authored
This is a follow-up to 2e275e24 and 1395cde2 which corrects a missed case: initializing an _Atomic(T *) from a null pointer constant in the form of the integer literal 0. Fixes https://github.com/llvm/llvm-project/issues/63550 Differential Revision: https://reviews.llvm.org/D154284
-
- Jul 02, 2023
-
-
Sergei Barannikov authored
This reverts commit 15ef9b26. Going to put it for review with larger set of differences.
-
Yaxun (Sam) Liu authored
rename it to __AMDGCN_WAVEFRONT_SIZE__ for consistency. __AMDGCN_WAVEFRONT_SIZE will be deprecated in the future. Reviewed by: Matt Arsenault, Johannes Doerfert Differential Revision: https://reviews.llvm.org/D154207
-
Amirreza Ashouri authored
A typo has been fixed Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D154296
-
Youngsuk Kim authored
`CGBuilderTy::CreateElementBitCast()` no longer does what its name suggests. Remove remaining in-tree uses by one of the following methods. * drop the call entirely * fold it to an `Address` construction * replace it with `Address::withElementType()` This is a NFC cleanup effort. Reviewed By: barannikov88, nikic, jrtc27 Differential Revision: https://reviews.llvm.org/D154285
-
David Green authored
The aarch64 backend will benefit from expanding 64vector sdiv/udiv into mulh using shift(mul(ext, ext)), as the larger type size is legal and the mul(ext, ext) can efficiently use smull/umull instructions. This extends the existing code in GetMULHS to handle vector types for it. Differential Revision: https://reviews.llvm.org/D154049
-
Simon Pilgrim authored
Reuse the existing div/rem selection code to also handle mul/imul to support G_MUL/G_SMULH/G_UMULH, as they have a similar pattern using rDX/rAX for mulh/mul results, plus the AH/AL support for i8 multiplies.
-
David Green authored
See D154049.
-
Rainer Orth authored
`lit` doesn't accept arbitrary substrings of the target triple any longer, so d5a779b5 <https://reviews.llvm.org/rGd5a779b5a39b655ed9fafedaacbb017c46f5dbfe> has no effect. Instead, this patch uses the `target=` syntax as all other tests in `compiler-rt`. Tested on `amd64-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D154298
-
David Green authored
-
Timm Bäder authored
Remove whitespace before an exclamation mark.
-
Timm Bäder authored
-
Timm Bäder authored
This was always meant to test the values of c2, not c.
-
Haohai Wen authored
Check linker earlier so that lld specific flags can be append before inputs. Just like position of other flags. The intention is to make expanded cmd more consistent and elegent so that user can easily look for inputs when using -###. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D154176
-
Yuanfang Chen authored
For commit 632dd6a4
-
Igor Kudrin authored
The instruction-precise, or asynchronous, unwind tables usually take up much more space than the synchronous ones. If a user is concerned about the load size of the program and does not need the features provided with the asynchronous tables, the compiler should be able to generate the more compact variant. This patch changes the generation of CFI instructions for these cases so that they all come in one chunk in the prolog; it emits only one `.cfi_def_cfa*` instruction followed by `.cfi_offset` ones after all stack adjustments and register spills, and avoids generating CFI instructions in the epilog(s) as well as any other exceeding CFI instructions like `.cfi_remember_state` and `.cfi_restore_state`. Effectively, it reverses the effects of D111411 and D114545 on functions with the `uwtable(sync)` attribute. As a side effect, it also restores the behavior on functions that have neither `uwtable` nor `nounwind` attributes. Differential Revision: https://reviews.llvm.org/D153098
-
Sergei Barannikov authored
This allows a smooth transition to ParseStatus.
-
David Green authored
As in https://godbolt.org/z/4dafd9Geq, the icmp from an And may use an Ands to set flags, meaning the icmp is free. This could also be done for add/sub, but those patterns often happen in the induction variable of a loop, making them quite performance sensitive. Differential Revision: https://reviews.llvm.org/D153611
-
Thurston Dang authored
Reverting my commit because of buildbot breakage. This reverts commit d0b0dbea.
-
Thurston Dang authored
This patch adds an msan interceptor for dladdr1 (with support for RTLD_DL_LINKMAP and RTLD_DL_SYMENT) and an accompanying test. It also adds a helper file, msan_dl.cpp, that contains UnpoisonDllAddrInfo (refactored out of the dladdr interceptor) and UnpoisonDllAddr1ExtraInfo. Differential Revision: https://reviews.llvm.org/D154272
-
Evandro Menezes authored
Remove multiple versions of the predicate that checks if the instruction operand is shifted by up to 4.
-
Petr Hosek authored
FEnvImpl.h includes math.h and so needs an explicit dependency. Differential Revision: https://reviews.llvm.org/D154044
-
Sergei Barannikov authored
-