brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · 1fd379a Raw
20 lines · plain
1// RUN: fir-opt --split-input-file --lower-workshare --allow-unregistered-dialect %s | FileCheck %s2 3// Check that we do not emit an omp.single for the constant operation4 5func.func @foo() {6  omp.workshare {7    %c1 = arith.constant 1 : index8    omp.workshare.loop_wrapper {9      omp.loop_nest (%arg1) : index = (%c1) to (%c1) inclusive step (%c1) {10        "test.test0"() : () -> ()11        omp.yield12      }13    }14    omp.terminator15  }16  return17}18 19// CHECK-NOT: omp.single20