commit | 716b02d8c575afde7af1af13df145019659abca2 | [log] [tgz] |
---|---|---|
author | Dominik Adamski <dominik.adamski@amd.com> | Thu Apr 10 12:23:53 2025 +0200 |
committer | GitHub <noreply@github.com> | Thu Apr 10 12:23:53 2025 +0200 |
tree | 65d7e5d9ed1e44708dd1d50896f1307c921bc611 | |
parent | 2fe123a1195e16e065f913ba2bba8582370a8707 [diff] |
[LLVM][MemCpyOpt] Unify alias tags if we optimize allocas (#129537) Optimization of alloca instructions may lead to invalid alias tags. Incorrect alias tags can result in incorrect optimization outcomes for Fortran source code compiled by Flang with flags: `-O3 -mmlir -local-alloc-tbaa -flto`. This commit removes alias tags when memcpy optimization replaces two arrays with one array, thus ensuring correct compilation of Fortran source code using flags: `-O3 -mmlir -local-alloc-tbaa -flto`. This commit is also a proposal to fix the reported issue: https://github.com/llvm/llvm-project/issues/133984 --------- Co-authored-by: Shilei Tian <i@tianshilei.me>
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.