Skip to content

Commit 995d33b

Browse files
author
Zhang Yan
committed
update
1 parent 8416732 commit 995d33b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/gc/Transforms/Pipeline.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ void populateVectorPasses(mlir::PassManager &pm) {
5656
pm.addNestedPass<func::FuncOp>(math::createMathLegalizeToF32());
5757
// sourceTypeStrs can be extended
5858
arith::ArithEmulateUnsupportedFloatsOptions options;
59-
options.sourceTypeStrs = SmallVector<std::string>{"bf16"};
59+
static SmallVector<std::string> data = {"bf16"};
60+
options.sourceTypeStrs = data;
6061
options.targetTypeStr = "f32";
6162
pm.addNestedPass<func::FuncOp>(
6263
arith::createArithEmulateUnsupportedFloats(options));

0 commit comments

Comments
 (0)