[PATCH] D68145: [AMDGPU] Make printf lowering faster when there are no printfs
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 17:22:42 PDT 2019
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp:574-575
+
+ for (auto &U : PrintfFunction->uses())
+ if (auto *CI = dyn_cast<CallInst>(U.getUser()))
+ if (CI->isCallee(&U))
----------------
foad wrote:
> arsenm wrote:
> > Braces
> I can add braces of course (just around multi-line constructs, yeah?) but whose rule is that? I don't see it in the coding standards and clang-format didn't add them.
clang-format apparently isn't capable of this. If it were up to me, braces would be include in 100% of contexts. the style guide doesn't actually say anything about this last I checked
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68145/new/
https://reviews.llvm.org/D68145
More information about the llvm-commits
mailing list