Fix a bug in legalize where it would emit two calls to libcalls that return
authorChris Lattner <sabre@nondot.org>
Fri, 2 Sep 2005 20:26:58 +0000 (20:26 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 Sep 2005 20:26:58 +0000 (20:26 +0000)
commit99c25b86aa85b0093f24b2394a5aa37f66294b2b
tree548e8a67f7a296392377a3f058915c6956e0e413
parentc78970136005b09eccf5b8bba6ebbb34581de6c0
Fix a bug in legalize where it would emit two calls to libcalls that return
i64 values on targets that need that expanded to 32-bit registers.  This fixes
PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll and speeds up 189.lucas from
taking 122.72s to 81.96s on my desktop.

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