[clang] [AMDGPU] const-fold imm operands of amdgcn_update_dpp intrinsic (PR #71139)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 7 19:21:13 PST 2023
================
@@ -17632,8 +17632,27 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
case AMDGPU::BI__builtin_amdgcn_mov_dpp:
case AMDGPU::BI__builtin_amdgcn_update_dpp: {
llvm::SmallVector<llvm::Value *, 6> Args;
- for (unsigned I = 0; I != E->getNumArgs(); ++I)
- Args.push_back(EmitScalarExpr(E->getArg(I)));
+ // Find out if any arguments are required to be integer constant
----------------
arsenm wrote:
Can you factor the existing generic code into a helper function? This is mostly copy paste of the default builtin path
https://github.com/llvm/llvm-project/pull/71139
More information about the cfe-commits
mailing list