[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / polly / test / ScopInfo / constant-non-integer-branch-condition.ll
blob86dd94e3371b26a961896d45f8a5d7b6b87b864c
1 ; RUN: opt %loadNPMPolly '-passes=print<polly-function-scops>' -disable-output < %s 2>&1 | FileCheck %s
3 ; At some point this caused a problem in the domain generation as we
4 ; assumed any constant branch condition to be valid. However, only constant
5 ; integers are interesting and can be handled.
7 ; CHECK: Stmt_entry_split__TO__cleanup
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11 ; Function Attrs: nounwind uwtable
12 define i32 @main(ptr %A) #0 {
13 entry:
14   br label %entry.split
16 entry.split:                                      ; preds = %entry
17   br i1 ptrtoint (ptr @test_weak to i1), label %if.then, label %cleanup
19 if.then:                                          ; preds = %entry.split
20   store i32 0, ptr %A
21   br label %cleanup
23 cleanup:                                          ; preds = %if.then, %entry.split
24   ret i32 0
27 declare extern_weak i32 @test_weak(...)