brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 5d1e882 Raw
53 lines · plain
1; RUN: opt < %s -disable-output -passes='no-op-module' -print-before=bleh 2>&1 | FileCheck %s --check-prefix=NONE --allow-empty2; RUN: opt < %s -disable-output -passes='no-op-module' -print-after=bleh 2>&1 | FileCheck %s --check-prefix=NONE --allow-empty3; RUN: opt < %s -disable-output -passes='no-op-module' -print-before=no-op-function 2>&1 | FileCheck %s --check-prefix=NONE --allow-empty4; RUN: opt < %s -disable-output -passes='no-op-module' -print-after=no-op-function 2>&1 | FileCheck %s --check-prefix=NONE --allow-empty5; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-before=no-op-module 2>&1 | FileCheck %s --check-prefix=ONCE6; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-after=no-op-module 2>&1 | FileCheck %s --check-prefix=ONCE7; RUN: opt < %s -disable-output -passes='no-op-function' -print-before=no-op-function 2>&1 | FileCheck %s --check-prefix=ONCE8; RUN: opt < %s -disable-output -passes='no-op-function' -print-after=no-op-function 2>&1 | FileCheck %s --check-prefix=ONCE9; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-before=no-op-function --print-module-scope 2>&1 | FileCheck %s --check-prefix=TWICE10; RUN: opt < %s -disable-output -passes='no-op-module,no-op-function' -print-after=no-op-function --print-module-scope 2>&1 | FileCheck %s --check-prefix=TWICE11; RUN: opt < %s -disable-output -passes='loop-vectorize' -print-before=loop-vectorize -print-after=loop-vectorize 2>&1 | FileCheck %s --check-prefix=CHECK-LV --allow-empty12; RUN: opt < %s -disable-output -passes='simple-loop-unswitch,simple-loop-unswitch<nontrivial>,simple-loop-unswitch<no-nontrivial>' -print-before=simple-loop-unswitch -print-after=simple-loop-unswitch 2>&1 | FileCheck %s --check-prefix=CHECK-UNSWITCH --allow-empty13 14; NONE-NOT: @foo15; NONE-NOT: @bar16 17; ONCE: @foo18; ONCE: @bar19; ONCE-NOT: @foo20; ONCE-NOT: @bar21 22; TWICE: @foo23; TWICE: @bar24; TWICE: @foo25; TWICE: @bar26; TWICE-NOT: @foo27; TWICE-NOT: @bar28 29; Verify that we can handle function passes with params.30; CHECK-LV: *** IR Dump Before LoopVectorizePass on foo ***31; CHECK-LV: *** IR Dump After LoopVectorizePass on foo ***32; CHECK-LV: *** IR Dump Before LoopVectorizePass on bar ***33; CHECK-LV: *** IR Dump After LoopVectorizePass on bar ***34 35; Verify that we can handle loop passes with params.36; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on loop37; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on loop38; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on loop39; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on loop40; CHECK-UNSWITCH: *** IR Dump Before SimpleLoopUnswitchPass on loop41; CHECK-UNSWITCH: *** IR Dump After SimpleLoopUnswitchPass on loop42 43define void @foo() {44  ret void45}46 47define void @bar() {48entry:49  br label %loop50loop:51  br label %loop52}53