commit | b27ab06a3d3f7f37496c5fa4dc367a3be0a8498d | [log] [tgz] |
---|---|---|
author | Nikita Popov <npopov@redhat.com> | Tue Jun 10 16:19:45 2025 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 10 16:19:45 2025 +0200 |
tree | 2fb2d1cb6a1cf0526913fa9347b0d5cd82bd2a10 | |
parent | 99f6cb89352f7491e8cd3cc58c6d1ba687c99b27 [diff] |
[InstCombine] Preserve flags for difference of gep chains (#143488) When expanding the offset of a GEP chain via a series of adds, try to preserve the nsw/nuw flags based on inbounds/nuw. This is a followup to https://github.com/llvm/llvm-project/pull/142958. Proof: https://alive2.llvm.org/ce/z/8HiFYY (note that preserving nsw in the nusw case is not valid)
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.