[PATCH] D108464: [clang][CodeGen] Refactor CreateTempAlloca function nest. NFC.
Andy Wingo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 20 06:07:38 PDT 2021
wingo added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuilder.h:115
- /// Emit a load from an i1 flag variable.
- llvm::LoadInst *CreateFlagLoad(llvm::Value *Addr,
----------------
it's the change to always return an `Address` from `CreateTempAlloca` that makes these methods unnecessary.
================
Comment at: clang/lib/CodeGen/CGGPUBuiltin.cpp:116
llvm::Value *Arg = Args[I].getRValue(*this).getScalarVal();
- Builder.CreateAlignedStore(Arg, P, DL.getPrefTypeAlign(Arg->getType()));
+ // FIXME: Changing the following line to Builder.CreateStore(Arg, P)
+ // results in a test failure in OpenMP/nvptx_target_printf_codegen, in
----------------
this is an open question -- there could be a bug here in the existing code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108464/new/
https://reviews.llvm.org/D108464
More information about the cfe-commits
mailing list