Fix PR5258, jump-threading creating invalid PHIs.
authorTorok Edwin <edwintorok@gmail.com>
Tue, 20 Oct 2009 15:42:00 +0000 (15:42 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 20 Oct 2009 15:42:00 +0000 (15:42 +0000)
commitf993327e71d826dcb852929a78881569ef83374d
tree61b6388ff743c0a268b055a0c0c5fdf67b2a3360
parent2b6183d2543287e5371319d16010bf651a207b1b
Fix PR5258, jump-threading creating invalid PHIs.
When an incoming value for a PHI is updated, we must also updated all other
incoming values for the same BB to match, otherwise we create invalid PHIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84638 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SSAUpdater.cpp
test/Transforms/JumpThreading/2009-10-20-jumpthreading-phi.ll [new file with mode: 0644]