inline the trivial AddToWorkList/RemoveFromWorkList methods
authorChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 06:13:40 +0000 (06:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 06:13:40 +0000 (06:13 +0000)
commit7a1e924b9a7dde1bf936e38777e48b4dda7e8d1c
tree549117b556b091087ac735e22ac9e8d6e71d4841
parent878daed2aa158319f0d5a3dce4034499437f38fe
inline the trivial AddToWorkList/RemoveFromWorkList methods
into their callers.  simplify ReplaceInstUsesWith.  Make
EraseInstFromFunction only add operands to the worklist if
there aren't too many of them (this was a scalability win
for crazy programs that was only infrequently enforced).
Switch more code to using EraseInstFromFunction instead of
duplicating it inline.  Change some fcmp/icmp optimizations
to modify fcmp/icmp in place instead of creating a new one
and deleting the old one just to change the predicate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80483 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp