[mlir] Remove unnecessary copying of pass options

I missed a comment in D98279 that you don't need to copy pass options.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D98366
This commit is contained in:
Christian Sigg 2021-03-10 21:32:52 +01:00
parent 4f16e177e1
commit 6a291ed0f0
1 changed files with 1 additions and 7 deletions

View File

@ -27,13 +27,7 @@ gpu::SerializeToBlobPass::SerializeToBlobPass(TypeID passID)
: OperationPass<gpu::GPUModuleOp>(passID) {}
gpu::SerializeToBlobPass::SerializeToBlobPass(const SerializeToBlobPass &other)
: OperationPass<gpu::GPUModuleOp>(other) {
// Pass::Option has no copy constructor, copy them manually.
triple = other.triple;
chip = other.chip;
features = other.features;
gpuBinaryAnnotation = other.gpuBinaryAnnotation;
}
: OperationPass<gpu::GPUModuleOp>(other) {}
static std::string translateToISA(llvm::Module &llvmModule,
llvm::TargetMachine &targetMachine) {