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.
10 lines
358 B
LLVM
10 lines
358 B
LLVM
; RUN: opt -S -passes=instcombine < %s | FileCheck %s
|
|
|
|
define i1 @test1() {
|
|
entry:
|
|
%cmp = icmp ne i16 bitcast (<16 x i1> <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false, i1 false> to i16), 0
|
|
ret i1 %cmp
|
|
}
|
|
; CHECK-LABEL: define i1 @test1(
|
|
; CHECK: ret i1 true
|