================ @@ -1977,9 +1977,10 @@ LogicalResult OrderedRegionOp::verify() { if (getSimd()) return failure(); - if (auto container = (*this)->getParentOfType<WsloopOp>()) { - if (!container.getOrderedValAttr() || - container.getOrderedValAttr().getInt() != 0) + if (auto loopOp = dyn_cast<LoopNestOp>((*this)->getParentOp())) { ---------------- tblah wrote:
Could there be any case where there is another operation in between the OrderedRegionOp and the LoopNestOp? If not, maybe we should check the parent explicitly https://github.com/llvm/llvm-project/pull/89211 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits