1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test
Bill Wendling 991234752d Handle code gen for the unreachable instruction if it's the only instruction in
the function. We'll just turn it into a "trap" instruction instead.

The problem with not handling this is that it might generate a prologue without
the equivalent epilogue to go with it:

$ cat t.ll
define void @foo() {
entry:
  unreachable
}
$ llc -o - t.ll -relocation-model=pic -disable-fp-elim -unwind-tables
        .section        __TEXT,__text,regular,pure_instructions
        .globl  _foo
        .align  4, 0x90
_foo:                                   ## @foo
Leh_func_begin0:
## BB#0:                                ## %entry
        pushq   %rbp
Ltmp0:
        movq    %rsp, %rbp
Ltmp1:
Leh_func_end0:
...

The unwind tables then have bad data in them causing all sorts of problems.

Fixes <rdar://problem/8096481>.

llvm-svn: 108473
2010-07-15 23:32:40 +00:00
..
Analysis Remove interprocedural-basic-aa and associated code. The AliasAnalysis 2010-07-07 14:27:09 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Handle code gen for the unreachable instruction if it's the only instruction in 2010-07-15 23:32:40 +00:00
DebugInfo
ExecutionEngine
Feature Add support for empty named metadata too. This isn't particularly 2010-07-13 19:42:44 +00:00
FrontendAda
FrontendC Temporarily disable this test. 2010-07-14 23:12:58 +00:00
FrontendC++
FrontendFortran
FrontendObjC
FrontendObjC++
Integer
lib
Linker
LLVMC Test for the -filelist fix. 2010-07-01 01:00:37 +00:00
MC Add AVX 256-bit compare instructions and a bunch of testcases 2010-07-13 22:06:38 +00:00
Other Add a lint check for mismatched return types, inspired by PR6944. 2010-07-12 18:02:04 +00:00
Scripts
TableGen Remove TargetInstrInfo::copyRegToReg entirely. 2010-07-11 17:01:17 +00:00
Transforms Reapply r108378, with bugfixes, testcase, and improved comment formatting. 2010-07-15 15:00:23 +00:00
Unit
Verifier
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile see comment. 2010-07-15 05:17:36 +00:00
Makefile.tests
site.exp.in
TestRunner.sh