Skip to content

Commit cdcc7ba

Browse files
lint fix
Signed-off-by: Muzammiluddin Syed <[email protected]>
1 parent 054ac29 commit cdcc7ba

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

compiler/src/iree/compiler/Codegen/Common/FastMathPatterns.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,19 @@ struct FastErfPattern : public OpRewritePattern<math::ErfOp> {
5151
if (resVecType) {
5252
SmallVector<Attribute> values(resVecType.getNumElements(),
5353
rewriter.getF32FloatAttr(v));
54-
return arith::ConstantOp::create(rewriter,
55-
loc, resVecType, DenseElementsAttr::get(resVecType, values));
54+
return arith::ConstantOp::create(
55+
rewriter, loc, resVecType,
56+
DenseElementsAttr::get(resVecType, values));
5657
} else {
5758
return arith::ConstantOp::create(rewriter, loc, rewriter.getF32Type(),
58-
rewriter.getF32FloatAttr(v));
59+
rewriter.getF32FloatAttr(v));
5960
}
6061
};
6162

6263
Value one = createConst(1.0f);
6364
Value ax = math::AbsFOp::create(rewriter, loc, input);
64-
Value cmp =
65-
arith::CmpFOp::create(rewriter, loc, arith::CmpFPredicate::OLT, ax, one);
65+
Value cmp = arith::CmpFOp::create(rewriter, loc, arith::CmpFPredicate::OLT,
66+
ax, one);
6667

6768
// Coefficients for |x| < 1.0.
6869
const SmallVector<Value, 6> coeffs1 = {
@@ -81,7 +82,7 @@ struct FastErfPattern : public OpRewritePattern<math::ErfOp> {
8182
if (resultType.isF32()) {
8283
// For scalar types, use scf.if.
8384
auto ifOp = scf::IfOp::create(rewriter, loc, resultType, cmp,
84-
/*withElseRegion=*/true);
85+
/*withElseRegion=*/true);
8586

8687
// Then region: |x| < 1.0 - evaluate polynomial.
8788
rewriter.setInsertionPointToStart(&ifOp.getThenRegion().front());

third_party/llvm-project

Submodule llvm-project updated 1397 files

0 commit comments

Comments
 (0)