llvm-project/polly/test/ScopInfo/constant-non-integer-branch-condition.ll
Nikita Popov deab451e7a
[IR] Remove support for icmp and fcmp constant expressions (#93038)
Remove support for the icmp and fcmp constant expressions.

This is part of:
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179

As usual, many of the updated tests will no longer test what they were
originally intended to -- this is hard to preserve when constant
expressions get removed, and in many cases just impossible as the
existence of a specific kind of constant expression was the cause of the
issue in the first place.
2024-06-04 08:31:03 +02:00

28 lines
893 B
LLVM

; RUN: opt %loadNPMPolly '-passes=print<polly-function-scops>' -disable-output < %s 2>&1 | FileCheck %s
;
; At some point this caused a problem in the domain generation as we
; assumed any constant branch condition to be valid. However, only constant
; integers are interesting and can be handled.
;
; CHECK: Stmt_entry_split__TO__cleanup
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
; Function Attrs: nounwind uwtable
define i32 @main(ptr %A) #0 {
entry:
br label %entry.split
entry.split: ; preds = %entry
br i1 ptrtoint (ptr @test_weak to i1), label %if.then, label %cleanup
if.then: ; preds = %entry.split
store i32 0, ptr %A
br label %cleanup
cleanup: ; preds = %if.then, %entry.split
ret i32 0
}
declare extern_weak i32 @test_weak(...)