| commit | 8ba341eec3929dd26679092196cd45dfdd1e60c6 | [log] [tgz] |
|---|---|---|
| author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | Mon Jul 21 14:19:33 2025 +0100 |
| committer | GitHub <noreply@github.com> | Mon Jul 21 14:19:33 2025 +0100 |
| tree | 984340608239fa4e7467dfc0c6e26dff75722720 | |
| parent | 92c55a315eab455d5fed2625fe0f61f88cb25499 [diff] |
[BranchFolding] Kill common hoisted debug instructions (#140091) branch-folder hoists common instructions from TBB and FBB into their pred. Without this patch it achieves this by splicing the instructions from TBB and deleting the common ones in FBB. That moves the debug locations and debug instructions from TBB into the pred without modification, which is not ideal. Debug locations are handled in pull request 140063. This patch handles debug instructions - in the simplest way possible, which is to just kill (undef) them. We kill and hoist the ones in FBB as well as TBB because otherwise the fact there's an assignment on the code path is deleted (which might lead to a prior location extending further than it should). We might be able to do something smarter to preserve some variable locations in some cases, but this is the easiest not-incorrect thing to do.
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.