Files
clang-p2996/polly/test/CodeGen/20100713.ll
rahulana-quic e1f056f692 Reland "[polly] Port polly tests to use NPM" (#92918)
Even as the NPM has been in use by Polly for a while now, the majority
of the tests continue using the LPM passes. This patch ports the tests
to use the NPM passes (for example, by replacing a flag such as
-polly-detect with -passes=polly-detect following the NPM syntax for
specifying passes) with some exceptions for some missing features in the
new passes.

Relanding #90632.
2024-05-24 13:09:34 -07:00

34 lines
1.3 KiB
LLVM

; RUN: opt %loadNPMPolly -passes=polly-codegen < %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
define void @fft_float(i32 %NumSamples) nounwind {
br label %bb18
bb18: ; preds = %bb17
br i1 false, label %bb19, label %bb22
bb19: ; preds = %bb18
%a = uitofp i32 %NumSamples to double ; <double> [#uses=1]
br label %bb21
bb20: ; preds = %bb21
%1 = load float, ptr undef, align 4 ; <float> [#uses=0]
%2 = fpext float undef to double ; <double> [#uses=1]
%3 = fdiv double %2, %a ; <double> [#uses=0]
%indvar.next = add i64 %indvar, 1 ; <i64> [#uses=1]
br label %bb21
bb21: ; preds = %bb20, %bb19
%indvar = phi i64 [ %indvar.next, %bb20 ], [ 0, %bb19 ] ; <i64> [#uses=1]
br i1 false, label %bb20, label %bb22.loopexit
bb22.loopexit: ; preds = %bb21
br label %bb22
bb22: ; preds = %bb22.loopexit, %bb18
br label %return
return: ; preds = %bb22
ret void
}