use IC.ReplaceInstUsesWith instead of a raw RAUW so that uses of
authorChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 18:38:44 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 18:38:44 +0000 (18:38 +0000)
commit0fe80bbbb6a017169d273c4824903b52a7ea2414
tree303c2e9ff365c882b5d45177d21c54e50f6d5f59
parent0a62474830f50b423329470caeb9a4e4da14a607
use IC.ReplaceInstUsesWith instead of a raw RAUW so that uses of
the old thing end up on the instcombine worklist.  Not doing this
can cause an extra top-level iteration of instcombine, burning
compile time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp