commit | 75ec529b35a9cfef7b6cc5393453750883981b5a | [log] [tgz] |
---|---|---|
author | Nikita Popov <npopov@redhat.com> | Thu Jul 04 14:41:12 2024 +0200 |
committer | Nikita Popov <github@npopov.com> | Fri Jul 05 16:02:28 2024 +0200 |
tree | 52e4855ced3a76713fd2d482b919f27c1baa8102 | |
parent | 855a7326a25dcae072ef90cf0dbf27f2026ebf8d [diff] |
[Mem2Reg] Don't use single store optimization for potentially poison value (#97711) If there is a single store, then loads must either load the stored value or uninitialized memory (undef). If the stored value may be poison, then replacing an uninitialized memory load with it would be incorrect. Fall back to the generic code in that case. This PR only fixes the case where there is a literal poison store -- the case where the value is non-trivially poison will still get miscompiled by phi simplification later, see #96631. Fixes https://github.com/llvm/llvm-project/issues/97702. (cherry picked from commit f58930f705884dfac3bd8c481c827d027a6068cb)
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.