Skip to content

Commit

Permalink
revert changes of MapVector construction.
Browse files Browse the repository at this point in the history
Signed-off-by: hanhanW <[email protected]>
  • Loading branch information
hanhanW committed Jan 6, 2025
1 parent a479a4a commit a76fb9a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ struct SpecializeEncodingsPass
return signalPassFailure();
}

llvm::MapVector<StringRef, IREE::Stream::ExecutableOp> executableOp(
llvm::map_range(moduleOp.getOps<IREE::Stream::ExecutableOp>(),
[](auto op) {
return {op.getName(), op};
}));
llvm::MapVector<StringRef, IREE::Stream::ExecutableOp> executableOps;
for (auto executableOp : moduleOp.getOps<IREE::Stream::ExecutableOp>()) {
executableOps[executableOp.getName()] = executableOp;
}

IREE::Stream::ResolveLayoutAttrFn resolveLayoutAttr =
usedDialects[0]->makeLayoutAttrResolver(moduleOp);
Expand Down

0 comments on commit a76fb9a

Please sign in to comment.