- Mar 17, 2023
-
-
River Riddle authored
This greatly reduces the number of allocators we create, while still retaining thread safety. Reducing the number of allocators is much better for locality and memory usage; this revision drops memory usage for some MLIR heavy workloads (with lots of attributes/types) by >=5%. This is due to the observation that the number of threads is effectively always smaller than the number of parametric attributes/types. Differential Revision: https://reviews.llvm.org/D145991
-
Kazu Hirata authored
-
Kirill Stoimenov authored
-
Philip Reames authored
-
Mircea Trofin authored
There are 2 such base cases: indirect calls and calls to functions external to the module; and then any musttail calls to live functions (because of the first 2 reasons or otherwise). The IR validator reports, in these cases, that it "cannot guarantee tail call due to mismatched parameter counts". The fix is two-fold: first, we mark as "live" (i.e. non-DAE-able) functions that make an indirect musttail call. Then, we propagate live-ness to musttail callers of live functions. Declared functions are already marked "live". Differential Revision: https://reviews.llvm.org/D145209
-
Ilia Diachkov authored
The patch fixes "Virtual register does not match instruction constraint" and partly "Illegal virtual register for instruction" fails in the SPIRV backend builds with LLVM_ENABLE_EXPENSIVE_CHECKS enabled. As a result, the number of passed LIT tests with enabled checks is doubled. Also, support for ndrange_*D builtins is placed in a separate function. Differential Revision: https://reviews.llvm.org/D144897
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D142927
-
Peiming Liu authored
Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D146248
-
Kazu Hirata authored
This patch fixes: mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp:479:13: error: unused variable 'tiledOp' [-Werror,-Wunused-variable]
-
zhijian authored
Summary: In function PPCAIXAsmPrinter::emitTracebackTable() ,the bit "IsBackChainStored" of traceback table always set true, it will cause aix debug tools "dbx" emit an error info "libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS && *nextStkpp == addr)" when debug a leaf functions with no stack frame. If a a leaf functions with no stack frame , the bit IsBackChainStored should be unset. Reviewers: ChenZheng Differential Revision: https://reviews.llvm.org/D146071
-
Sam James authored
Fixes build w/ GCC 13: ``` [587/7274] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc_system_str_to_float_comparison_test.dir/str_to_float_comparison_test.cpp.o FAILED: projects/libc/test/src/__support/CMakeFiles/libc_system_str_to_float_comparison_test.dir/str_to_float_comparison_test.cpp.o /usr/lib/llvm/16/bin/clang++ -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/sam/git/llvm-project/build/projects/libc/test/src/__support -I/home/sam/git/llvm-project/libc/test/src/__support -I/home/sam/git/llvm-project/build/include -I/home/sam/git/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=c++17 -MD -MT projects/libc/test/src/__support/CMakeFiles/libc_system_str_to_float_comparison_test.dir/str_to_float_comparison_test.cpp.o -MF projects/libc/test/src/__support/CMakeFiles/libc_system_str_to_float_comparison_test.dir/str_to_float_comparison_test.cpp.o.d -o projects/libc/test/src/__support/CMakeFiles/libc_system_str_to_float_comparison_test.dir/str_to_float_comparison_test.cpp.o -c /home/sam/git/llvm-project/libc/test/src/__support/str_to_float_comparison_test.cpp /home/sam/git/llvm-project/libc/test/src/__support/str_to_float_comparison_test.cpp:34:15: error: unknown type name 'uint32_t' static inline uint32_t hexCharToU32(char in) { ^ /home/sam/git/llvm-project/libc/test/src/__support/str_to_float_comparison_test.cpp:39:15: error: unknown type name 'uint32_t' static inline uint32_t fastHexToU32(const char *inStr) { ^ ``` Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D146111 -
Volodymyr Sapsai authored
Using two environment variables `CC_PRINT_INTERNAL_STAT` and `CC_PRINT_INTERNAL_STAT_FILE` to work like `CC_PRINT_PROC_STAT`. The purpose of the change is to allow collecting the internal stats without modifying the build scripts. Write all stats to a single file to simplify aggregating the data. Differential Revision: https://reviews.llvm.org/D144981
-
alosharm authored
[DebugInfo][SROA] Correct debug info for global variables spanning multiple fragments in case of SROA The function transferSRADebugInfo is modified to include missing cases. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D138992
-
Fabio D'Urso authored
The previous code resulted in 252 KiB being allocated on the stack, which caused a stack overflow on Fuchsia. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D146229
-
Mahesh Ravishankar authored
Differential Revision: https://reviews.llvm.org/D146249
-
Aaron Ballman authored
This addresses the issue found by: https://lab.llvm.org/buildbot/#/builders/30/builds/33006
-
Kirill Stoimenov authored
-
Noah Goldstein authored
We can handle the following cases + some `nsw`/`nuw` flags: `(srem (mul X, Y), (mul X, Z))` [If `srem(Y, Z) == 0`] -> 0 - https://alive2.llvm.org/ce/z/PW4XZ- [If `srem(Y, Z) == Y`] -> `(mul nuw nsw X, Y)` - https://alive2.llvm.org/ce/z/DQe9Ek -> `(mul nsw X, Y)` - https://alive2.llvm.org/ce/z/Nr_MdH [If `Y`/`Z` are constant] -> `(mul/shl nuw nsw X, (srem Y, Z))` - https://alive2.llvm.org/ce/z/ccTFj2 - https://alive2.llvm.org/ce/z/i_UQ5A -> `(mul/shl nsw X, (srem Y, Z))` - https://alive2.llvm.org/ce/z/mQKc63 - https://alive2.llvm.org/ce/z/uERkKH `(urem (mul X, Y), (mul X, Z))` [If `urem(Y, Z) == 0`] -> 0 - https://alive2.llvm.org/ce/z/LL7UVR [If `srem(Y, Z) == Y`] -> `(mul nuw nsw X, Y)` - https://alive2.llvm.org/ce/z/9Kgs_i -> `(mul nuw X, Y)` - https://alive2.llvm.org/ce/z/ow9i8u [If `Y`/`Z` are constant] -> `(mul nuw nsw X, (srem Y, Z))` - https://alive2.llvm.org/ce/z/mNnQqJ - https://alive2.llvm.org/ce/z/Bj_DR- - https://alive2.llvm.org/ce/z/X6ZEtQ -> `(mul nuw X, (srem Y, Z))` - https://alive2.llvm.org/ce/z/SJYtUV The rationale for doing this all in `InstCombine` rather than handling the constant `mul` cases in `InstSimplify` is we often create a new instruction because we are able to deduce more `nsw`/`nuw` flags than the original instruction had. Reviewed By: MattDevereau, sdesmalen Differential Revision: https://reviews.llvm.org/D143014 -
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D143013
-
Mark de Wever authored
Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D146153
-
Siva Chandra Reddy authored
-
Arthur Eubanks authored
Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D146243
-
Shao-Ce SUN authored
Reduced the usage of variables in the `rfind` and `count` functions. Replaced calls to `drop_front` with direct use of `substr` in `consume_front`, since `starts_with` already performs length check on the string. Did the same for other functions. Using the `std::clamp` in `slice` makes the code more straightforward. Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D144787
-
Joseph Huber authored
Summary: This was not removed from the previous patch. Fix that.
-
Kirill Stoimenov authored
-
Joseph Huber authored
This generalizes handling of the integration tests. We now implicitly depend on the `libc.startup.${LIBC_TARGET_OS}.crt1` file rather than passing it in manually. This simplifies the interface. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D146237 -
Valery N Dmitriev authored
When all the pointers are off the same base address and have known distances to each other these differences can be encoded into displacements in x86 arch. So the only cost that matters is cost of the base GEP. Differential Revision: https://reviews.llvm.org/D146102
-
Mirko Brkusanin authored
Also disables global atomic fmin/fmax x2 patterns on gfx11 Differential Revision: https://reviews.llvm.org/D146137
-
Florian Hahn authored
As suggested in D143865, consolidate replicate region creation and optimization in a single helper that's exposed and used by LV.
-
Arthur Eubanks authored
See https://discourse.llvm.org/t/rfc-we-should-stop-merging-allocas-in-the-inliner/41975 for the RFC from 2016 around this. Backend stack coloring takes care of what this initially set out to help with. This only affects the legacy inliner, which for the most part doesn't matter anymore. The new PM inliner never looked at this flag. There are some backends running the legacy always-inline pass, but that's unlikely to matter. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D146091
-
Arthur Eubanks authored
-enable-new-pm is no longer necessary except for bugpoint. Make the name more clunky so it hopefully won't be used. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D146103
-
Arthur Eubanks authored
In preparation for doing module checks of PreservedAnalyses.
-
Jessica Clarke authored
Most forks won't have an LLVM_BUGS_KEY secret, so Mailgun will error out with a missing key, and if forks do happen to have such a secret then we still don't want to be getting emails to LLVM's mailing lists for downstream forks. Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D146235
-
Peiming Liu authored
Reviewed By: aartbik, bixia Differential Revision: https://reviews.llvm.org/D146074
-
Arthur Eubanks authored
Initialization modifies the module.
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
David Spickett authored
d4320cb2 fixed a regular build issue by making the flang tests depend on llvm-readelf. Turns out llvm-readelf is a symlink to llvm-readobj and for whatever reason, doesn't have the right exports at the moment to be picked up in a standalone build. https://lab.llvm.org/buildbot/#/builders/175/builds/26448 Maybe we should fix that, but for now, just require llvm-readobj instead.
-
Arthur Eubanks authored
-
Mikhail R. Gadelha authored
-