llvm-6502/lib/CodeGen/SelectionDAG
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
..
CallingConvLower.cpp add methods for analysis of call results and return nodes. 2007-02-28 07:09:40 +00:00
DAGCombiner.cpp tighten up recursion depth again 2007-05-25 02:19:06 +00:00
LegalizeDAG.cpp Pass the DAG to SDNode::dump to let it do more detailed dumps in some cases. 2007-06-04 16:17:33 +00:00
Makefile For PR780: 2006-07-26 16:18:00 +00:00
ScheduleDAG.cpp Fix some VC++ warnings. 2007-03-20 20:43:18 +00:00
ScheduleDAGList.cpp switch the sched unit map over to use a DenseMap instead of std::map. This 2007-02-03 01:34:13 +00:00
ScheduleDAGRRList.cpp Fix a typo in a comment. 2007-04-26 19:40:56 +00:00
ScheduleDAGSimple.cpp Removed tabs everywhere except autogenerated & external files. Add make 2007-04-16 18:10:23 +00:00
SelectionDAG.cpp Resolve implicit alignment before computing the FoldingSet information so 2007-06-04 15:49:41 +00:00
SelectionDAGISel.cpp The fix that was applied for PR1224 stops the compiler 2007-06-13 05:51:31 +00:00
SelectionDAGPrinter.cpp Qualify several calls to functions in the MVT namespace, for consistency. 2007-05-18 17:52:13 +00:00
TargetLowering.cpp Fix CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll, and PR1473. 2007-05-30 16:30:06 +00:00