Skip to content

Commit

Permalink
fix cmplx stop
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jan 25, 2025
1 parent 67da753 commit b0663d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/enzyme_ad/jax/Passes/EnzymeHLOOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2757,7 +2757,7 @@ struct AddSimplify : public OpRewritePattern<mlir::stablehlo::AddOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -2838,7 +2838,7 @@ struct SubSimplify : public OpRewritePattern<mlir::stablehlo::SubtractOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3015,7 +3015,7 @@ struct MulSimplify : public OpRewritePattern<mlir::stablehlo::MulOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3072,7 +3072,7 @@ struct DivSimplify : public OpRewritePattern<mlir::stablehlo::DivOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3118,7 +3118,7 @@ struct RemSimplify : public OpRewritePattern<mlir::stablehlo::RemOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3183,7 +3183,7 @@ struct PowSimplify : public OpRewritePattern<mlir::stablehlo::PowOp> {
}
}
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3552,7 +3552,7 @@ struct MaxSimplify : public OpRewritePattern<mlir::stablehlo::MaxOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down Expand Up @@ -3594,7 +3594,7 @@ struct MinSimplify : public OpRewritePattern<mlir::stablehlo::MinOp> {
op, op.getType(), res.cast<ElementsAttr>());
return success();
}
} else {
} else if (op.getType().getElementType().isa<IntegerType>()) {
if (auto res = constFoldBinaryOpConditional<IntegerAttr,
IntegerAttr::ValueType, void>(
constants,
Expand Down

0 comments on commit b0663d3

Please sign in to comment.