[PATCH] D140560: AMDGPU: Fix broken opaque pointer handling in printf pass

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 09:26:49 PST 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp:426
           const char *S = NonLiteralStr;
           if (auto *ConstExpr = dyn_cast<ConstantExpr>(Arg)) {
             auto *GV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0));
----------------
arsenm wrote:
> This is all wrong for the same reasons as the format string
I don't see why this can't just emit a memcpy


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140560/new/

https://reviews.llvm.org/D140560



More information about the llvm-commits mailing list