Fix a nasty latent bug in the legalizer that was triggered by my patch
authorChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2005 00:53:54 +0000 (00:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2005 00:53:54 +0000 (00:53 +0000)
commit69a889eb35d59a10e78a07cc26d41cbab31eddce
tree9b7f76694dc002dc6c7686504fe042dc67a04059
parent9e4dd9dfc97f3930f58ca6e47bebbd8eb5cdd8a1
Fix a nasty latent bug in the legalizer that was triggered by my patch
last night, breaking crafty and twolf.  Make sure that the newly found
legal nodes are themselves not re-legalized until the next iteration.

Also, since this functionality exists now, we can reduce number of legalizer
iterations by depending on this behavior instead of having to misuse 'do
another iteration' to get the same effect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24875 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp