[SDAG] Allow the legalizer to delete an illegally typed intermediate
authorChandler Carruth <chandlerc@gmail.com>
Sat, 2 Aug 2014 00:24:54 +0000 (00:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 2 Aug 2014 00:24:54 +0000 (00:24 +0000)
commitd61e28d3ecd580d902e406b4548e711277dedf27
treef2310bd31c0804e16b42495c25eb46c81bd405aa
parent5e3bfde3f4cf642d9b96b27f4e485690576bab75
[SDAG] Allow the legalizer to delete an illegally typed intermediate
introduced during legalization. This pattern is based on other patterns
in the legalizer that I changed in the same way. Now, the legalizer
eagerly collects its garbage when necessary so that we can survive
leaving such nodes around for it.

Instead, we add an assert to make sure the node will be correctly
handled by that layer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214602 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/SparcISelLowering.cpp