3 ; RUN: opt -newgvn -S %s | FileCheck %s
7 ; TODO: Current NewGVN crashes on the function below. See PR37121.
9 define hidden void @foo() {
11 %.promoted = load i8, i8* undef, align 8
14 ;; This is really a multi-valued phi, because the phi is defined by an expression of the phi.
15 ;; This means that we can't propagate the value over the backedge, because we'll just cycle
16 ;; through every value.
18 if: ; preds = %if, %top
19 %0 = phi i8 [ %1, %if ], [ %.promoted, %top ]
21 br i1 false, label %L50, label %if
24 %.lcssa = phi i8 [ %1, %if ]
25 store i8 %.lcssa, i8* undef, align 8