aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorabhishek-kaushik22 <abhishek.kaushik@intel.com>2024-12-06 09:46:15 +0800
committerGitHub <noreply@github.com>2024-12-06 09:46:15 +0800
commitd20731ce6bc97e2cc0d6be502ca174c14d563de2 (patch)
tree1056ea0be16ba65e5a4bc88f4b369e264b5bffa5 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parenteb49788bd935b2335f73fd2a4124c82e683bd9b0 (diff)
downloadllvm-d20731ce6bc97e2cc0d6be502ca174c14d563de2.zip
llvm-d20731ce6bc97e2cc0d6be502ca174c14d563de2.tar.gz
llvm-d20731ce6bc97e2cc0d6be502ca174c14d563de2.tar.bz2
[CGData][GlobalIsel][Legalizer][DAG][MC][AsmParser][X86][AMX] Use `std::move` to avoid copy (#118068)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 1b39b75..3421455 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -6823,7 +6823,7 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
ScalarOps.push_back(getUNDEF(OpVT));
continue;
}
- APInt Val = cast<ConstantSDNode>(Op)->getAPIntValue();
+ const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue();
ScalarOps.push_back(SignExtendInReg(Val, OpVT));
}
return getBuildVector(VT, DL, ScalarOps);