1 ; RUN: opt -gvn -S < %s | FileCheck %s
3 ; Check that an unreachable predecessor to a PHI node doesn't cause a crash.
6 define i32 @f(i32** %f) {
8 ; Load should be removed, since it's ignored.
11 %bar = load i32*, i32** %f
14 %zed = load i32*, i32** %f
15 br i1 false, label %bb1, label %bb2
17 %foo = phi i32* [ null, %bb0 ], [ %zed, %bb1 ]
18 %storemerge = load i32, i32* %foo