OSDN Git Service

Fix a problem that instcombine would hit when dealing with unreachable code.
authorChris Lattner <sabre@nondot.org>
Thu, 7 Jul 2005 20:40:38 +0000 (20:40 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Jul 2005 20:40:38 +0000 (20:40 +0000)
commitb3d59701c89a6e03a0e0909543f3e7bd9140900f
treef457b115f29fc6b67907aeafc9e9bcd15493004c
parent78e1a3c038ac9cd4fbf4b8522db2dcd513ba07b2
Fix a problem that instcombine would hit when dealing with unreachable code.
Because the instcombine has to scan the entire function when it starts up
to begin with, we might as well do it in DFO so we can nuke unreachable code.

This fixes: Transforms/InstCombine/2005-07-07-DeadPHILoop.ll

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