brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 56d37a0 Raw
32 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -S %s | FileCheck %s2;3; This test was extracted from gcc in SPEC2006 and it crashed our code4; generation, or to be more precise, the ScopExpander due to a endless5; recursion. It was fixed in r261474 (git: 61cba205ca59).6;7; CHECK: polly.start:8;9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"10 11define void @lex_number(ptr %str) {12entry:13  br label %for.end14 15for.end:                                          ; preds = %entry16  %0 = load i8, ptr %str, align 117  %cmp17 = icmp eq i8 %0, 4818  br i1 %cmp17, label %land.lhs.true34, label %lor.lhs.false8119 20land.lhs.true34:                                  ; preds = %for.end21  %arrayidx35 = getelementptr inbounds i8, ptr %str, i64 122  %str.arrayidx35 = select i1 undef, ptr %str, ptr %arrayidx3523  br label %lor.lhs.false8124 25lor.lhs.false81:                                  ; preds = %land.lhs.true34, %for.end26  %p.0 = phi ptr [ %str.arrayidx35, %land.lhs.true34 ], [ %str, %for.end ]27  br label %do.body17228 29do.body172:                                       ; preds = %lor.lhs.false8130  ret void31}32