llvm-6502/test
Mark Seaborn dfa550a176 Fix llc to not reuse spill slots in functions that invoke setjmp()
We need to ensure that StackSlotColoring.cpp does not reuse stack
spill slots in functions that call "returns_twice" functions such as
setjmp(), otherwise this can lead to miscompiled code, because a stack
slot would be clobbered when it's still live.

This was already handled correctly for functions that call setjmp()
(though this wasn't covered by a test), but not for functions that
invoke setjmp().

We fix this by changing callsFunctionThatReturnsTwice() to check for
invoke instructions.

This fixes PR18244.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199180 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-14 04:20:01 +00:00
..
Analysis Fix broken CHECK lines. 2014-01-11 21:06:00 +00:00
Assembler Clean up RUN command for Assembler/getInt.ll. 2014-01-13 22:37:35 +00:00
Bindings
Bitcode
BugPoint
CodeGen Fix llc to not reuse spill slots in functions that invoke setjmp() 2014-01-14 04:20:01 +00:00
DebugInfo [SystemZ] Add "volatile" to a dead store in variable-loc.ll 2014-01-13 15:42:16 +00:00
ExecutionEngine llvm/test/ExecutionEngine/MCJIT/load-object-a.ll: Put together rm(1) and mkdir(1) at the top. 2014-01-13 05:55:10 +00:00
Feature
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MC [x86] Fix retq/retl handling in 64-bit mode 2014-01-13 14:05:59 +00:00
Object
Other [PM] Wire up support for writing bitcode with new PM. 2014-01-13 07:38:24 +00:00
TableGen
tools llvm-readobj: address review comments for ARM EHABI printing 2014-01-09 04:31:18 +00:00
Transforms Switch-to-lookup tables: Don't require a result for the default 2014-01-12 00:44:41 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh