mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d2a571702a
Without asserts, it might take a long time for the tests to crash. Only run them with assert builds.
28 lines
772 B
LLVM
28 lines
772 B
LLVM
; REQUIRES: asserts
|
|
|
|
; RUN: opt -newgvn -S %s | FileCheck %s
|
|
|
|
; XFAIL: *
|
|
|
|
; TODO: Current NewGVN crashes on the function below. See PR37121.
|
|
|
|
define hidden void @foo() {
|
|
top:
|
|
%.promoted = load i8, i8* undef, align 8
|
|
br label %if
|
|
|
|
;; This is really a multi-valued phi, because the phi is defined by an expression of the phi.
|
|
;; This means that we can't propagate the value over the backedge, because we'll just cycle
|
|
;; through every value.
|
|
|
|
if: ; preds = %if, %top
|
|
%0 = phi i8 [ %1, %if ], [ %.promoted, %top ]
|
|
%1 = xor i8 %0, undef
|
|
br i1 false, label %L50, label %if
|
|
|
|
L50: ; preds = %if
|
|
%.lcssa = phi i8 [ %1, %if ]
|
|
store i8 %.lcssa, i8* undef, align 8
|
|
ret void
|
|
}
|