llvm-project/llvm
Denis Antrushin ee86688b81 [Statepoints][ISEL] gc.relocate uniquification should be based on SDValue, not IR Value.
When exporting statepoint results to virtual registers we try to avoid
generating exports for duplicated inputs. But we erroneously use
IR Value* to check if inputs are duplicated. Instead, we should use
SDValue, because even different IR values can get lowered to the same
SDValue.
I'm adding a (degenerate) test case which emphasizes importance of this
feature for invoke statepoints.
If we fail to export only unique values we will end up with something
like that:

  %0 = STATEPOINT
  %1 = COPY %0

landing_pad:
  <use of %1>

And when exceptional path is taken, %1 is left uninitialized (COPY is never
execute).

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D87695
2020-09-21 19:44:46 +07:00
..
benchmarks
bindings [OCaml] Remove add_constant_propagation 2020-08-27 09:30:21 -07:00
cmake [AIX] Enable large code model when building with clang 2020-09-18 11:03:22 -04:00
docs [llvm-install-name-tool] Update the command-line guide 2020-09-17 13:44:26 -07:00
examples [ORC][examples] Add an OrcV2 example for IR optimization via IRTransformLayer. 2020-09-19 18:59:52 -07:00
include Revert "[NFC][ScheduleDAG] Remove unused EntrySU SUnit" 2020-09-21 13:33:05 +02:00
lib [Statepoints][ISEL] gc.relocate uniquification should be based on SDValue, not IR Value. 2020-09-21 19:44:46 +07:00
projects
resources
runtimes [runtimes] Remove TOOLCHAIN_TOOLS specialization 2020-08-24 13:48:29 -07:00
test [Statepoints][ISEL] gc.relocate uniquification should be based on SDValue, not IR Value. 2020-09-21 19:44:46 +07:00
tools [llvm-readelf/obj] - Stop printing invalid names for unnamed section symbols. 2020-09-21 13:05:46 +03:00
unittests [SCEVExpander] Support expanding nonintegral pointers with constant base. 2020-09-19 17:19:53 +01:00
utils [gn build] Port 2124ca1d5c 2020-09-19 08:34:58 -04:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [llvm][cmake] Change LLVM_INTEGRATED_CRT_ALLOC to a path instead of a boolean 2020-09-15 19:18:52 -04:00
CODE_OWNERS.TXT Update PowerPC backend ownership in CODE_OWNERS.TXT 2020-09-14 15:45:57 -05:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.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.