28 lines · plain
1; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \2; RUN: -disable-output -passes='default<O1>' -S %s 2>&1 \3; RUN: | FileCheck %s --check-prefix=NPM4; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \5; RUN: -disable-output -passes='default<O2>' -S %s 2>&1 \6; RUN: | FileCheck %s --check-prefix=NPM7; RUN: opt -mtriple=hexagon -disable-verify -debug-pass-manager \8; RUN: -disable-output -passes='default<O3>' -S %s 2>&1 \9; RUN: | FileCheck %s --check-prefix=NPM10 11; Test TargetMachine::registerPassBuilderCallbacks12; NPM: Running pass: HexagonVectorLoopCarriedReusePass13 14declare void @bar() local_unnamed_addr15 16define void @foo(i32 %n) local_unnamed_addr {17entry:18 br label %loop19loop:20 %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop ]21 %iv.next = add i32 %iv, 122 tail call void @bar()23 %cmp = icmp eq i32 %iv, %n24 br i1 %cmp, label %exit, label %loop25exit:26 ret void27}28