llvm / llvm/llvm-project

Replace trivial copy constructor call with cir::CopyOp

Open
#161,402 3 comments 0 reactions 0 assignees View on GitHub
ClangIR
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

In ClangIR, we replaced a trivial copy constructor call with cir::CopyOp in the LoweringPrepare pass. `cir::CopyOp` is already upstreamed, but not used for that case.

Code in ClangIR: https://github.com/llvm/clangir/blob/823e943d1b9aaba0fc46f880c5a6ac8c29fc761d/clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp#L1537-L1550

Ref: https://github.com/llvm/llvm-project/pull/160999#discussion_r2388854615

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.