- Mar 08, 2022
-
-
River Riddle authored
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D121185
-
Petr Hosek authored
This reverts commit ed28461e since it broke the VE bot.
-
Arthur Eubanks authored
Introduce a new attribute "function-inline-cost-multiplier" which multiplies the inline cost of a call site (or all calls to a callee) by the multiplier. When processing the list of calls created by inlining, check each call to see if the new call's callee is in the same SCC as the original callee. If so, set the "function-inline-cost-multiplier" attribute of the new call site to double the original call site's attribute value. This does not happen when the original call site is intra-SCC. This is an alternative to D120584, which marks the call sites as noinline. Hopefully fixes PR45253. Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D121084
-
Lorenzo Chelini authored
-
Stanislav Mekhanoshin authored
A load via pointer cast to constant will return true from pointsToConstantMemory which is not necessarily so. Fixes: SWDEV-326463 Differential Revision: https://reviews.llvm.org/D121172
-
Petr Hosek authored
This is useful when building a complete toolchain to ensure that CRT is built after builtins but before the rest of the compiler-rt. Differential Revision: https://reviews.llvm.org/D120682
-
Zi Xuan Wu authored
Add support of parsing .csky_attribute directive and emit related target attributes in .csky.attribute section. It does not emit attribute directive in assembly code, so only emit target attributes in ELF streamer. In ELF streamer, it handles the header EFlag and the csky_attribute section which contains some attribute items. The EFlag and attribute items are calculated from feature bits based on Subtarget.
-
Yuanfang Chen authored
This relands commit 73134743. It failed on Windows/Mac because `-fjmc` is only checked for ELF targets. Check the flag unconditionally instead and issue a warning for non-ELF targets.
-
Valentin Clement authored
Fix for buildbot failure: https://lab.llvm.org/buildbot/#/builders/180/builds/3532
-
Johannes Doerfert authored
If the user disables de-globalization we did not seed the AAHeapToShared and AAHeapToStack but we still could end up with them through in-flight lookups. With this patch we disable AAHeapToShared completely if the user disabled de-globalization. Heap-2-stack is still run though. Differential Revision: https://reviews.llvm.org/D121059
-
Johannes Doerfert authored
An event pool, similar to the stream pool, needs to be kept per device. For one, events are associated with cuda contexts which means we cannot destroy the former after the latter. Also, CUDA documentation states streams and events need to be associated with the same context, which we did not ensure at all. Differential Revision: https://reviews.llvm.org/D120142
-
Johannes Doerfert authored
There are two problems this patch tries to address: 1) We currently free resources in a random order wrt. plugin and libomptarget destruction. This patch should ensure the CUDA plugin is less fragile if something during the deinitialization goes wrong. 2) We need to support (hard) pause runtime calls eventually. This patch allows us to free all associated resources, though we cannot reinitialize the device yet. Follow up patch will associate one event pool per device/context. Differential Revision: https://reviews.llvm.org/D120089
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D121060
-
Uday Bondhugula authored
Rewrite isInnermostAffineForOp utility to make it more direct/efficient. Drop unnecessary check. NFC. Differential Revision: https://reviews.llvm.org/D121170
-
Shao-Ce SUN authored
Inspired by D115469 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D121066
-
Lang Hames authored
This patch removes the unintended resolution of locally scoped absolute symbols (which was causing unexpected definition errors). It stops using the JITSymbolFlags::Absolute flag (it isn't set or used elsewhere, and causes mismatch-flags asserts), and adds JITSymbolFlags::Exported to default scoped absolute symbols. Finally, we now set the scope of absolute symbols correctly in MachOLinkGraphBuilder.
-
Christudasan Devadasan authored
Use TII::getRegClass to return a valid regclass or a nullptr if the RC is unknown for a given OpIdx. This fixes a potential crash occurred while getting the RC from a variadic instruction. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D120813
-
Phoebe Wang authored
Reviewed By: RKSimon, LuoYuanke Differential Revision: https://reviews.llvm.org/D120307
-
Philip Reames authored
-
Yitzhak Mandelbaum authored
When pre-initializing fields in the environment, the code assumed that all fields of a struct would be initialized. However, given limits on value construction, that assumption is incorrect. This patch changes the code to drop that assumption and thereby avoid dereferencing a nullptr. Differential Revision: https://reviews.llvm.org/D121158
-
jacquesguan authored
Add patterns for vector widening floating-point reduction instructions. Differential Revision: https://reviews.llvm.org/D120390
-
Philip Reames authored
-
Amir Ayupov authored
Remove `TYPE BIN` parameter that is introduced in CMake 3.14 and revert back to the equivalent compatible form `DESTINATION ${CMAKE_INSTALL_BINDIR}`. Addresses https://github.com/llvm/llvm-project/issues/54099 Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D121012 -
Jim Ingham authored
The old command wrote to CWD, which doesn't always work, and if it didn't, there was no workaround (and it crashed on failure). This patch changed the setting to provide a directory to save the objects to. Differential Revision: https://reviews.llvm.org/D121036
-
Kai Luo authored
The workaround has been removed via https://reviews.llvm.org/D119931, checks passed on AIX-32. Reviewed By: ldionne, daltenty, jsji, #libc Differential Revision: https://reviews.llvm.org/D121081
-
Peter Klausler authored
When a module uses a derived type that is shadowed by a generic interface, the module file was missing a USE statement for the name. Detect and handle this situation. Differential Revision: https://reviews.llvm.org/D121160
-
Peixin-Qiao authored
The paramemter of hint clause in OpenMP critical hint should be non-negative. The omp_lock_hint_none is 0 in omp.h. Reviewed By: Alexey Bataev Differential Revision: https://reviews.llvm.org/D121101
-
Bixia Zheng authored
This is to align with the PyTACO API better. Modify an existing unit test to test the new routines. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D121083
-
Jessica Paquette authored
This adds JSON output to llvm-remark-size-diff. The goal here is to make it easy for external tools to consume output from llvm-remark-size-diff. These tools could be used for automated size analysis. (E.g. in CI). To specify JSON output, use `--report_style=json`. JSON output can be pretty-printed via `--pretty`. With automation in mind, the schema looks like this: ``` "Files": { "A": <filename_a> "B": <filename_b> }, "InBoth": [ { "FunctionName": <function name>, "InstCount": [ <count_in_a>, <count_in_b> ], "StackSize": [ <count_in_a>, <count_in_b> ] }, ... ] "OnlyInA": [ { "FunctionName": <function name>, "InstCount": [ <count_in_a>, 0 ], "StackSize": [ <count_in_a>, 0 ] }, ... ] "OnlyInB": [ { "FunctionName": <function name>, "InstCount": [ 0, <count_in_b> ], "StackSize": [ 0, <c... -
Sam Clegg authored
We don't yet do anything when this feature is enabled, this change just lays the ground work by accepting that there is such a feature. See https://github.com/WebAssembly/extended-const Differential Revision: https://reviews.llvm.org/D121151
-
Peter Klausler authored
When a structure constructor does not initialize an allocatable component, ensure that the typed expression representation contains an explicit NULL() for the component. Expression semantics already copies default initialized expressions for nonallocatable components into structure constructors. This change is expected to simplify lowering. Differential Revision: https://reviews.llvm.org/D121162
-
Arthur Eubanks authored
-
Louis Dionne authored
This reverts commit bed3240b. I will need to add more tests for std::shared_ptr<T const> before re-landing this.
-
Jacob Lambert authored
Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D105507
-
Peter Klausler authored
Crash when DIM= is not a valid dimension in the result. Differential Revision: https://reviews.llvm.org/D121145
-
Groverkss authored
This patch cleans up the interface to PresburgerSet. At a high level it does the following changes: - Move member functions around to have constructors at top and print/dump at end. - Move a private function to be a static function instead. - Change member functions of type "getAllIntegerPolyhedron" to "getAllPolys" instead. - Improve documentation for PresburgerSet. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D121027 -
Peter Klausler authored
Rather than reading default character variables in formatted input one byte at a time via NextInField(), skip and read them via blocks of available buffer data. This eliminates a bottleneck that affected reads of large character values. (It also exposed a problem with sequential reads with RECL= set on the OPEN statement, so that's fixed too.) Differential Revision: https://reviews.llvm.org/D121144
-
Jonathan Peyton authored
Register constraint switched to "=q" which means very specifically (from https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html#Machine-Constraints) > Any register accessible as rl. In 32-bit mode, a, b, c, and d; in 64-bit mode, any integer register. Older gcc versions (8.x and below) were trying to use esi or edi for the 8 bit flag variable, but it wound up displaying this error in the end: kmp_lock.cpp: In function ‘void __kmp_spin_backoff(kmp_backoff_t*)’: kmp_lock.cpp:2684:1: error: unsupported size for integer register Hence the correct restriction is "=q" instead of "=r". Fixes: https://github.com/llvm/llvm-project/issues/53309 Differential Revision: https://reviews.llvm.org/D120519
-