Skip to content

Commit 45a1331

Browse files
committed
Remove unused function.
1 parent c8d369a commit 45a1331

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

flang/lib/Optimizer/Transforms/ConvertComplexPow.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ static func::FuncOp getOrDeclare(fir::FirOpBuilder &builder, Location loc,
4747
return func;
4848
}
4949

50-
static bool isZero(Value v) {
51-
if (auto cst = v.getDefiningOp<arith::ConstantOp>())
52-
if (auto attr = dyn_cast<FloatAttr>(cst.getValue()))
53-
return attr.getValue().isZero();
54-
return false;
55-
}
56-
5750
void ConvertComplexPowPass::runOnOperation() {
5851
ModuleOp mod = getOperation();
5952
if (fir::getTargetTriple(mod).isAMDGCN())

0 commit comments

Comments
 (0)