mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
f20746afd1
This conversion was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done llvm-svn: 186269
20 lines
290 B
LLVM
20 lines
290 B
LLVM
; RUN: opt -early-cse -S < %s | FileCheck %s
|
|
; PR12231
|
|
|
|
declare i32 @f()
|
|
|
|
define i32 @fn() {
|
|
entry:
|
|
br label %lbl_1215
|
|
|
|
lbl_1215:
|
|
%ins34 = phi i32 [ %ins35, %xxx ], [ undef, %entry ]
|
|
ret i32 %ins34
|
|
|
|
xxx:
|
|
%ins35 = call i32 @f()
|
|
br label %lbl_1215
|
|
}
|
|
|
|
; CHECK-LABEL: define i32 @fn(
|