llvm-project/llvm
Jeremy Morse cc1e87bf55 [DebugInfo][InstrRef] Avoid stack-slot-coloring changing codegen due to DI
Stack slot colouring adds "weight" to slots if a non-dbg-value instruction
refers to it. This, unfortunately, means that DBG_PHI instructions can have
an effect on codegen. The fix is very simple, replace isDebugValue with
isDebugInstr.

The regression test contains a scenario that reproduces this problem; I've
represented both normal-debug mode and instr-ref debug mode instructions
in comment lines prefixed with AAAAAA and BBBBBB, and un-comment them with
sed to test that the two different modes produce the same behaviour.

Differential Revision: https://reviews.llvm.org/D108627
2021-08-25 12:04:59 +01:00
..
benchmarks
bindings
cmake [cmake] Fix native tooling when cross-compiling on Linux 2021-08-20 10:05:13 -07:00
docs [test] Migrate -gcc-toolchain with space separator to --gcc-toolchain= 2021-08-20 15:24:58 -07:00
examples [examples] Fix Kaleidoscope for Windows 2021-08-19 13:20:51 +10:00
include Make WindowsManifestMerger::merge() take a MemoryBufferRef 2021-08-24 16:39:20 -04:00
lib [DebugInfo][InstrRef] Avoid stack-slot-coloring changing codegen due to DI 2021-08-25 12:04:59 +01:00
projects
resources
runtimes [libomptarget][amdcgn] Add build dependency for llvm-link and opt 2021-08-20 01:57:58 +02:00
test [DebugInfo][InstrRef] Avoid stack-slot-coloring changing codegen due to DI 2021-08-25 12:04:59 +01:00
tools Make WindowsManifestMerger::merge() take a MemoryBufferRef 2021-08-24 16:39:20 -04:00
unittests [GlobalISel] Avoid creating COPY in LegalizationArtifactCombiner 2021-08-24 11:09:56 +02:00
utils [gn build] Port 48958d02d2 2021-08-25 09:02:08 +00:00
.clang-format
.clang-tidy
.gitattributes Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments 2021-08-17 16:16:19 +01:00
.gitignore
CMakeLists.txt [NFC] Trim trailing whitespaces in `llvm/CMakeLists.txt` 2021-08-16 12:49:59 -04:00
CODE_OWNERS.TXT Add Johannes to CODE_OWNERS for openmp offloading 2021-08-02 19:45:47 +01:00
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.