OSDN Git Service

Fix Alpha/2005-07-12-TwoMallocCalls.ll and PR593.
authorChris Lattner <sabre@nondot.org>
Wed, 13 Jul 2005 02:00:04 +0000 (02:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Jul 2005 02:00:04 +0000 (02:00 +0000)
commitc087a435109cdc943da094a21371f7d66d5b0e54
treecccbd91cb779a50638a42e7972eeaa7de648cf00
parent0c8781dabbfb5a23b602b020541070c34340a878
Fix Alpha/2005-07-12-TwoMallocCalls.ll and PR593.

It is not safe to call LegalizeOp on something that has already been legalized.
Instead, just force another iteration of legalization.

This could affect all platforms but X86, as this codepath is dynamically
dead on X86 (ISD::MEMSET and friends are legal).

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