Keep iterating over all uses when meeting a phi node in AllUsesOfValueWillTrapIfNull().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 29 Jan 2010 23:54:14 +0000 (23:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 29 Jan 2010 23:54:14 +0000 (23:54 +0000)
commitb489d0f88a59cf620fad7a0a82037ad2cd3cad16
treec69f72315ef0e9d9e3461b927e1716cced92f0f9
parent50459580e79348003fec7849b8e147e449c472b8
Keep iterating over all uses when meeting a phi node in AllUsesOfValueWillTrapIfNull().

This bug was exposed by my inliner cost changes in r94615, and caused failures
of lencod on most architectures when building with LTO.

This patch fixes lencod and 464.h264ref on x86-64 (and likely others).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94858 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp