We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85979b commit 8eaad2dCopy full SHA for 8eaad2d
lib/Conversion/TritonToUnstructured/TritonToUnstructuredPass.cpp
@@ -317,10 +317,10 @@ class TritonToUnstructuredPass
317
return success();
318
})
319
.Case<triton::AddPtrOp>([&](triton::AddPtrOp addptr) {
320
- // Bail when we have an addptr directly under an scf.if as we
321
- // do not know if the pointer returning from both branches
322
- // will have the same source
323
- if (dyn_cast<scf::IfOp>(addptr->getParentOp())) {
+ // Bail when we have an addptr in an scf.if as we do not know
+ // if the pointer returning from both branches will have the
+ // same source
+ if (addptr->getParentOfType<scf::IfOp>()) {
324
return failure();
325
}
326
0 commit comments