llvm-6502/lib
Duncan Sands f19f6bb31e The fix that was applied for PR1224 stops the compiler
crashing but breaks exception handling.  The problem
described in PR1224 is that invoke is a terminator that
can produce a value.  The value may be needed in other
blocks.  The code that writes to registers values needed
in other blocks runs before terminators are lowered (in
this case invoke) so asserted because the value was not
yet available.  The fix that was applied was to do invoke
lowering earlier, before writing values to registers.

The problem this causes is that the code to copy values
to registers can be output after the invoke call.  If
an exception is raised and control is passed to the
landing pad then this copy-code will never execute.  If
the value is needed in some code path reached via the
landing pad then that code will get something bogus.

So revert the original fix and simply skip invoke values
in the general copying to registers code.  Instead copy
the invoke value to a register in the invoke lowering code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37567 91177308-0d34-0410-b5e6-96231b3b80d8
2007-06-13 05:51:31 +00:00
..
Analysis Break DominatorTree from ETNode. 2007-06-12 00:54:38 +00:00
Archive adjust this to live in lib/Archive 2007-05-06 19:49:28 +00:00
AsmParser Commit first round work of PR1373. "noalias" is now fully supported in 2007-06-05 05:28:26 +00:00
Bitcode Fix PR1434 and test/Linker/link-archive.ll, this is a regression from 1.9. 2007-05-18 04:02:46 +00:00
CodeGen The fix that was applied for PR1224 stops the compiler 2007-06-13 05:51:31 +00:00
Debugger switch this to bitcode instead of bytecode 2007-05-06 09:29:13 +00:00
ExecutionEngine Add comments to fallsthrough cases. Also, this fixes PR1492 2007-06-03 19:20:49 +00:00
Linker Propagate alignment, section name and visibility when linking "appending 2007-06-06 22:01:12 +00:00
Support Fix edge case. 2007-06-09 04:20:33 +00:00
System Fix LLVM build on NetBSD. Patch by Neil Booth. 2007-06-04 15:28:57 +00:00
Target fix x86-64 mmx calling convention for real, which passes in integer gprs. 2007-06-09 05:08:10 +00:00
Transforms Fix test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll 2007-06-12 22:43:57 +00:00
VMCore isReachableFromEntry() is not suitable for post dominator. 2007-06-12 17:50:25 +00:00
Makefile build lib/Archive instead of lib/Bytecode 2007-05-06 19:50:06 +00:00