OSDN Git Service

Move some code around.
authorChris Lattner <sabre@nondot.org>
Sat, 6 May 2006 09:00:16 +0000 (09:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 6 May 2006 09:00:16 +0000 (09:00 +0000)
commit33a61139951d00191b1ca15dd4502ff114c3d169
tree43ee6fe1c21b550c7d38848a1393f5df60e22e57
parent985906323f67077a970612aa102141b5416688f9
Move some code around.

Make the "fold (and (cast A), (cast B)) -> (cast (and A, B))" transformation
only apply when both casts really will cause code to be generated.  If one or
both doesn't, then this xform doesn't remove a cast.

This fixes Transforms/InstCombine/2006-05-06-Infloop.ll

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