commit | add00bcbad74c6191362b571c3a5f2fb9224f711 | [log] [tgz] |
---|---|---|
author | Nikita Popov <npopov@redhat.com> | Mon Jan 08 10:21:25 2024 +0100 |
committer | Nikita Popov <npopov@redhat.com> | Tue Jan 09 12:12:04 2024 +0100 |
tree | 49601777671cb21b94e772d8f1c12490d98b0332 | |
parent | 2409b7624bfd50a3a10ab425514d1d694973416f [diff] |
[MSSA] Don't require clone creation to succeed (#76819) Sometimes, we create a MemoryAccess for an instruction, which is later simplified (e.g. via devirtualization) such that the new instruction has no memory effects anymore. If we later clone the instruction (e.g. during unswitching), then MSSA will not create a MemoryAccess for the new instruction, triggering an assert. Disable the assertion (by passing CreationMustSucceed=false) and adjust getDefiningAccessForClone() to work correctly in that case. This PR implements the alternative suggestion by alinas from https://github.com/llvm/llvm-project/pull/76142. (cherry picked from commit d02c7931d1be794a230943e300fec4172032e6a8)
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, or #llvm IRC channel on OFTC.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.