forked from OSchip/llvm-project
[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:
parent
4f16e177e1
commit
6a291ed0f0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue