llvm-project/llvm/test/CodeGen
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
..
AArch64 [CodeGenPrepare] Remove load-based heuristic 2016-02-25 00:23:27 +00:00
AMDGPU [AMDGPU] Assembler: Basic support for MIMG 2016-02-26 09:51:05 +00:00
ARM ARM: sink atomic release barrier as far as possible into cmpxchg. 2016-02-22 20:55:50 +00:00
BPF Revert "Change memcpy/memset/memmove to have dest and source alignments." 2015-11-19 05:56:52 +00:00
CPP
Generic Move test/CodeGen/Generic/pr26652.ll to test/CodeGen/X86/pr26652.ll and test it only on X86. 2016-02-25 00:12:18 +00:00
Hexagon [Hexagon] Implement TLS support 2016-02-18 15:42:57 +00:00
Inputs DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
MIR When printing MIR, output to errs() rather than outs(). 2016-02-19 00:18:46 +00:00
MSP430 `MSP430InstrInfo::loadRegFromStackSlot` forgets to set register def. 2016-02-24 15:15:02 +00:00
Mips [MC][ELF] Handle MIPS specific .sdata and .sbss directives 2016-02-11 06:45:54 +00:00
NVPTX Don't tail-duplicate blocks that contain convergent instructions. 2016-02-22 17:50:52 +00:00
PowerPC Fix for PR26690 take 2 2016-02-22 18:04:00 +00:00
SPARC [SPARC] Revamp AnalyzeBranch and add ReverseBranchCondition. 2016-01-13 04:44:14 +00:00
SystemZ [SystemZ] Fix ABI for i128 argument and return types 2016-02-19 14:10:21 +00:00
Thumb [MC] Use .p2align instead of .align 2016-01-26 00:03:25 +00:00
Thumb2 [SCEV] Try to reuse existing value during SCEV expansion 2016-02-04 01:27:38 +00:00
WebAssembly Revert "[WebAssembly] Stackify code emitted by eliminateFrameIndex" 2016-02-23 22:13:21 +00:00
WinEH [WinEH] Don't remove unannotated inline-asm calls 2016-02-26 00:04:25 +00:00
X86 [WinEH] Fix funclet return block clobber mask placement 2016-02-26 16:53:19 +00:00
XCore [MC] Use .p2align instead of .align 2016-01-26 00:03:25 +00:00