- Nov 18, 2022
-
-
Peiming Liu authored
Reviewed By: aartbik, bixia Differential Revision: https://reviews.llvm.org/D138223
-
Evgenii Stepanov authored
Differential Revision: https://reviews.llvm.org/D137354
-
Jakub Kuderski authored
-
Jakub Kuderski authored
Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D138225
-
Sami Tolvanen authored
When the Linux kernel is compiled without -mretpoline, KCFI fails ungracefully because it doesn't handle indirect calls with a memory target operand. Since the KCFI check will need to load the target address into a register for validating the type hash anyway, simply unfold memory operands in indirect calls that need a KCFI check. Fixes #59017
-
Sanjay Patel authored
I missed this file when updating similarly with f44e8464.
-
Adrian Prantl authored
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138214
-
Jakub Kuderski authored
Fail to match conversion patterns when source op has unsupported types. Fixes: https://github.com/llvm/llvm-project/issues/58749 Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D138178
-
Tomas Matheson authored
The invalid case is now represented by an empty StringRef rather than a nullptr. Previously ARCH_FEATURE was build from SUB_ARCH by prepending "+". This is now reverse, so that the "+arch-feature" is now visible in the .def, which is a bit clearer. This meant converting one StringSwitch into a loop. Removed getters which are now mostly unnecessary. Removed some old FIXMEs. Differential Revision: https://reviews.llvm.org/D138026
-
Mengxuan Cai authored
The current code of validDepInterchange() enumerates cases that are legal for interchange. This could be simplified by checking lexicographically order of the swapped direction matrix. Reviewed By: congzhe, Meinersbur, bmahjour Differential Revision: https://reviews.llvm.org/D137461
-
Jakub Kuderski authored
This includes LIT IR tests and runtime tests. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D138184
-
Roman Lebedev authored
Now that we are done with loop unrolling, be it either by LoopVectorizer, or LoopUnroll passes, some variable-offset GEP's into alloca's could have become constant-offset, thus enabling SROA and alloca promotion, yet we don't capitalize on that, which is surprizing. While it would be good to not introduce one more SROA invocation, but instead move the one from `PassBuilder::buildFunctionSimplificationPipeline()`, the existing test coverage says that is a bad idea, though it would be fine compile-time wise: https://llvm-compile-time-tracker.com/compare.php?from=b150d34c47efbd8fa09604bce805c0920360f8d7&to=5a9a5c855158b482552be8c7af3e73d67fa44805&stat=instructions So instead, i add yet another SROA run. I have checked, and it needs to be at least after said final loop unrolling. This is still fine compile-time wise: https://llvm-compile-time-tracker.com/compare.php?from=70324cd88328c0924e605fa81b696572560aa5c9&to=fb489bbef687ad821c3173a931709f9cad9aee8a&stat=instructions I've encountered this in a real code, `SROA-after-final-loop-unrolling.ll` has been reduced from https://godbolt.org/z/fsdMhETh3 Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D136806
-
Slava Zakharin authored
In general, the meaning of fastmath flags on a call during inlining is that the call's operation flags must be ignored. For user functions that means that the fastmath flags used for the function definition override any call site's fastmath flags. For intrinsic functions we can use the call site's fastmath flags, but we have to make sure that the call sites with different flags produce/use different simplified versions of the same intrinsic function. Differential Revision: https://reviews.llvm.org/D138048
-
Sanjay Patel authored
-
bixia1 authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D138213
-
Roman Lebedev authored
In practice this means that we can speculate more loads in SROA. This e.g. comes up in https://godbolt.org/z/G8716s6sj, although we are missing second half of the puzzle to optimize that.
-
Roman Lebedev authored
-
Stanislav Mekhanoshin authored
A target can return if a misaligned access is 'fast' as defined by the target or not. In reality there can be different levels of 'fast' and 'slow'. This patch changes the boolean 'Fast' argument of the allowsMisalignedMemoryAccesses family of functions to an unsigned representing its speed. A target can still define it as it wants and the direct translation of the current code uses 0 and 1 for current false and true. This makes the change an NFC. Subsequent patch will start using an actual value of speed in the load/store vectorizer to compare if a vectorized access going to be not just fast, but not slower than before. Differential Revision: https://reviews.llvm.org/D124217
-
Simon Pilgrim authored
-
Matt Arsenault authored
-
Jay Foad authored
isLiteralConstant and isLiteralConstantLike were similar to !isInlineConstant with slight differences like handling isReg operands. To avoid a profusion of similar functions with undocumented differences, this patch removes all the isLiteralConstant* variants. Callers are responsible for handling the isReg case. Differential Revision: https://reviews.llvm.org/D125759
-
Matt Arsenault authored
-
Jonas Paulsson authored
Add support for this GCC option which has the purpose of disallowing text relative accesses of module local symbols with PIC. In effect, this changes the code model to "medium". Reviewed By: uweigand, efriedma, MaskRay Differential Revision: https://reviews.llvm.org/D137044
-
Philip Reames authored
It was pointed out in review of D137140 that this case should be impossible. This patch converts an existing bailout into an assert instead.
-
Jordan Rupprecht authored
Some test cases are already marked @skipIfNoSBHeaders, but they make use of SBAPI headers in test setup. The setup will fail if the headers are missing, so it is too late to wait until the test case to apply the skip annotation. In addition to allowing this to apply to entire classes, I also changed all the existing annotations from test cases to test classes where necessary/appropriate. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D138181
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D138019
-
Alex Brachet authored
-
- Nov 17, 2022
-
-
Tom Eccles authored
Following RFC at https://discourse.llvm.org/t/rfc-ffp-contract-default-value/66301 This adds the `fastmath<contract>` attribute to `fir.call` and some floating point arithmetic operations (hence the many test changes). Instead of testing for this specific attribute, I am using a regular expression to match any attributes.
-
Louis Dionne authored
-
luxufan authored
If globals-aa is enabled, because of the deletion of memory instructions, there may be call instruction that is not in ModOrRefSet but is a MemoryUseOrDef. This causes the crash in the process of cloning uses and defs. Fixes https://github.com/llvm/llvm-project/issues/58719 Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D137553
-
Bradley Smith authored
When a PTRUE of non-element size is encountered, the PTEST optimization logic bails out since it cannot handle that type of PTRUE. Instead, it should be treated as a generic predicate to allow later optimizations trigger. Differential Revision: https://reviews.llvm.org/D138116
-
Sanjay Patel authored
Based on an example in issue #17113
-
Sanjay Patel authored
-
Louis Dionne authored
Some platforms don't provide all C library headers. In practice, libc++ only requires a few C library headers to exist, and only a few functions on those headers. Missing functions that libc++ doesn't need for its own implementation are handled properly by the using_if_exists attribute, however a missing header is currently a hard error when we try to do #include_next. This patch should make libc++ more flexible on platforms that do not provide C headers that libc++ doesn't actually require for its own implementation. The only downside is that it may move some errors from the #include_next point to later in the compilation if we actually try to use something that isn't provided, which could be somewhat confusing. However, these errors should be caught by folks trying to port libc++ over to a new platform (when running the libc++ test suite), not by end users. NOTE: This is a reapplicaton of 226409, which was reverted in 67472981 because it broke the build. The issue has now been fixed with https://reviews.llvm.org/D138062. Differential Revision: https://reviews.llvm.org/D136683
-
bixia1 authored
[mlir][sparse] Split SparseTensorRewrite into PreSparsificationRewrite and PostSparsificationRewrite. Reviewed By: aartbik, wrengr Differential Revision: https://reviews.llvm.org/D138153
-
David Green authored
This is quite reduced from the original example, but hopefully shows where vectorization is unprofitable because of multiple factors including the low trip count of the loop.
-
Matthias Springer authored
This change adds a builder that populates the body of a SequenceOp. This is useful for constructing SequenceOps from C++. Differential Revision: https://reviews.llvm.org/D137710
-
Guillaume Chatelet authored
@GMNGeoffrey let me know it there's a better way to import MPFR and GMP for the purpose of testing libc math functions. Differential Revision: https://reviews.llvm.org/D119547
-