Eli Friedman 2efa35f779 Add a bunch of calls to RemoveDeadNode in LegalizeDAG, so legalization doesn't get confused by CSE later on. Fixes PR11318.
Re-commit of r144034, with an extra fix so that RemoveDeadNode doesn't blow up.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144055 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-08 01:25:24 +00:00
..
2011-11-04 20:20:34 +00:00
2011-11-07 21:00:59 +00:00
2011-11-08 00:23:01 +00:00
2011-11-05 16:20:52 +00:00