llvm-project/llvm
Reid Kleckner 70c9bc71d4 [WinEH] Fix funclet return block clobber mask placement
MBB slot index intervals are half open, not closed. getMBBEndIndex()
returns the slot index of the start of the next block in layout order.
Placing a register mask there is incorrect if the successor of the
funclet return is not laid out after the return. Clang generates IR for
catch bodies before generating the following normal code, so we never
noticed this issue until the D frontend authors filed a bug about it.

Instead, we can put the clobber mask on the last instruction of the
funclet return block. We still aren't using a register mask operand on
the CATCHRET instruction because it would cause PEI to spill all CSRs,
including XMM regs, in the prologue.

Fixes PR26679.

llvm-svn: 262035
2016-02-26 16:53:19 +00:00
..
bindings Kill LLVMAddTargetData 2016-02-16 00:22:02 +00:00
cmake cmake: Simplify the iOS.cmake toolchain 2016-02-12 23:36:05 +00:00
docs Minor doc fix: statepoints are invokable too 2016-02-26 03:33:59 +00:00
examples Remove autoconf support 2016-01-26 21:29:08 +00:00
include [PM] Introduce CRTP mixin base classes to help define passes and 2016-02-26 11:44:45 +00:00
lib [WinEH] Fix funclet return block clobber mask placement 2016-02-26 16:53:19 +00:00
projects Remove autoconf support 2016-01-26 21:29:08 +00:00
resources
test [WinEH] Fix funclet return block clobber mask placement 2016-02-26 16:53:19 +00:00
tools llvm-dwp: provide diagnostics for duplicate DWO IDs 2016-02-26 07:30:15 +00:00
unittests [PM] Introduce CRTP mixin base classes to help define passes and 2016-02-26 11:44:45 +00:00
utils AVX512F: Add GATHER/SCATTER assembler Intel syntax tests for knl/skx/avx . Change memory operand parser handling. 2016-02-25 13:30:17 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [CMake] Create an install-distribution target driven by LLVM_DISTRIBUTION_COMPONENTS 2016-02-23 20:33:53 +00:00
CODE_OWNERS.TXT [docs] Remove references to autotools build. 2016-01-30 01:10:15 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Revert previous test commit. 2016-01-04 19:13:29 +00:00
configure Remove autoconf support 2016-01-26 21:29:08 +00:00
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

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.