mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
15bfd6d3ad
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
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(
|