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 1804748 commit 4d6f72fCopy full SHA for 4d6f72f
flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
@@ -808,8 +808,7 @@ struct ElementalOpConversion
808
if (asExpr->hasOneUse() && !asExpr.isMove()) {
809
// Check that the asExpr is the final operation before the yield,
810
// otherwise, clean-ups could impact the memory being re-used.
811
- mlir::Operation *nextOp = asExpr->getNextNode();
812
- if (nextOp && nextOp == yield.getOperation()) {
+ if (asExpr->getNextNode() == yield.getOperation()) {
813
elementValue = hlfir::Entity{asExpr.getVar()};
814
rewriter.eraseOp(asExpr);
815
}
0 commit comments