| commit | 86077c41a7899fb3a3ce4654bdb373e7cd954f49 | [log] [tgz] |
|---|---|---|
| author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | Tue Jul 01 09:54:58 2025 -0500 |
| committer | GitHub <noreply@github.com> | Tue Jul 01 09:54:58 2025 -0500 |
| tree | 90ff3f9d47eb3ade4c82309bd96018a69ebf6514 | |
| parent | 6e3465cd0f2313867f8d07bd4d11d4e133ac0990 [diff] |
[flang][OpenMP] Rewrite min/max with more than 2 arguments (#146423) Given an atomic operation `w = max(w, x1, x2, ...)` rewrite it as `w = max(w, max(x1, x2, ...))`. This will avoid unnecessary non-atomic comparisons inside of the atomic operation (min/max are expanded inline). In particular, if some of the x_i's are optional dummy parameters in the containing function, this will avoid any presence tests within the atomic operation. Fixes https://github.com/llvm/llvm-project/issues/144838
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.